Xcode – Swift NumberFormatter is giving compiler errors
I am trying to use the NumberFormatter in a SwiftUI view but I am getting compiler errors. Here's my code: import Foundation import SwiftUI struct AccountCard: View { var netWorth: NetWorth let formatter = NumberFormatter() formatter.numberStyle = .currency let investmentTotalString…