Build a SwiftUI App For Tracking Your Cryptocurrency Trades
Create a DCA calculator app to track your portfolio
Published in
4 min readAug 16, 2021
We’ll start by creating a structure that holds the data for a single trade.
A trade is made up of an amount
, a price
, and a value
. All of the trades are stored in the TradesModel
, which will make all of the calculations necessary for DCA (dollar-cost…