I have two type icons store in data like this :
struct ExpenseData: Identifiable, Codable, Equatable, Comparable {
var id = UUID()
var note: String
var type: String
var amount: Double
var expenseIcon: String
var incomeIcon: String
var date: Date
}
Thank you, the line missing is struct, I tried to make SwiftUI.Angle codable because I want to store it to UserDefaults, but i don't know how to make SwiftuiAngle codable, So i created on in model struct then i didn't know how to deal with it :(
I have two type icons store in data like this :
struct ExpenseData: Identifiable, Codable, Equatable, Comparable {
var id = UUID()
var note: String
var type: String
var amount: Double
var expenseIcon: String
var incomeIcon: String
var date: Date
}
Thank you, the line missing is struct, I tried to make SwiftUI.Angle codable because I want to store it to UserDefaults, but i don't know how to make SwiftuiAngle codable, So i created on in model struct then i didn't know how to deal with it :(