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 :(
Post
Replies
Boosts
Views
Activity
Sorry, I declare Angle and colors in my model struct, and tried to make them codable ,it Should be like : import Foundation
I don't how to how extend or codable Angle , So i tried to declare a new struct Angle to make it codable :(
Thank you I have tried it but the same places throw me another error: Cannot convert value of type 'Double' to expected argument type 'Angle'
Thank you, I'm working on it this way right now.
Thank you for suggestions, I haven't tried it yet and i will back let you know if i still can't figure it out.
The results is not what i want but still thank you for your suggestions !
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
}
it worked! I really appreciate your helps! Thank you