As my first Swift app I like to build a crypto currency converter using Swift UI and struggle to find a way to filter out selected crypto coins from an API call.
For example:
The following API call returns the top 100 crypto coins.
https://api.coingecko.com/api/v3/coins/markets?vs_currency=eur&order=market_cap_desc&per_page=100
-
How can I create a list for the user to select one or multiple coins?
-
How can I display only the information of the selected coins?
I am thinking to store the user selection in an array and filter out the coins from the API that match the same name but can't figure out how to do it.
Any guidance or pointer to learning material that can help me to figure this out would be much appreciated.