skip to Main Content

Default value for Codable property that does not exists with PropertyWrapper – Ios swift

i created a propertyWrapper like this: @propertyWrapper public struct DefaultTodayDate: Codable { public var wrappedValue: Date private let dateFormatter: DateFormatter = { let formatter = DateFormatter() formatter.timeZone = TimeZone(secondsFromGMT: 0) formatter.locale = Locale(identifier: "en_US_POSIX") formatter.dateFormat = "y-MM-dd'T'HH:mm:ss" return formatter }()…

VIEW QUESTION
Back To Top
Search