Skip to content

AliceVice/CryptoTrends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Crypto Trends

Crypto Trends is a test project showcasing a SwiftUI cryptocurrency trends application.

Functionality

  • The app displays the top 250 cryptocurrencies worldwide along with market statistics.
  • Users can search for coins, sort them, and reload the data.
  • Upon selecting a coin, users can view its statistics and price chart.
  • The app uses Combine to fetch data and bind UI components reactively.
  • Downloaded coin images are stored in the cache directory using FileManager.
  • Users can select and add coins to their portfolio (wallet). Coin storage is implemented using Core Data.
  • The app follows the MVVM pattern for clear separation of concerns.



CoinGecko API 🦎

CryptoTrends uses the CoinGecko to fetch the coins.



Implementation 🛠️

Stack:

  • SwiftUI: For building the app’s user interface.
  • MVVM Architecture: For clear separation of concerns and maintainable code.
  • Combine: For handling asynchronous network calls and data processing. For binding components to each other.
  • Core Data: For storing user's portfolio coins.
  • FileManager: To store the images into cache directory.
  • CoinGecko API: To fetch real‑time cryptocurrency data.

Project Structure:

Screenshot 2025-04-12 at 3 42 46 PM

Screens:

  • When the user opens the app, custom loading screen appears.
LoadingScreen.mp4
  • HomeView includes a custom navigation bar, market statistics, a search text field, and a coin list that supports sorting and manual refreshing via a refresh button in the top-right corner.
HomeView.mp4
  • The PortfolioView looks like the HomeView. But it includes user's portfolio coins. The user can add the coins to his portfolio by tapping the plus button on the left of the navigation bar.
PortfolioView.mp4
  • Coin DetailView has coin statistics and its price chart.
DetailsView.mp4
  • SettingsView has links and information about the project and API.
SettingsView.mp4

About

Test project showcasing a SwiftUI cryptocurrency trends application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages