Build a SwiftUI App For Tracking Your Cryptocurrency Trades

Create a DCA calculator app to track your portfolio

Millie Dev
Better Programming
Published in
4 min readAug 16, 2021

--

Image by Steve Buissinne from Pixabay

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…

--

--

An iOS developer who writes about gadgets, startups and blockchains. Swift programming tutorials are at typesafely.co.Uk