python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Encoding Realm models using @Persisted gives a Swift EncodingError message
When trying to encode this:
class MyClass: Object, Codable {
@Persisted var someValue: String
}
// I've created and added MyClass to Realm. I then query for it and get a `myClassResult` object
le...

Haroun Hajem
Votes: 0
Answers: 1
Using CodingKeys with custom protocol
I have the following Codable protocol containing a variable which I would like to exclude from the codable ones.
Problem is that I can't use the CodingKeys enum made for that within my own protocol: T...

Tulleb
Votes: 0
Answers: 2
SwiftUI enum with custom rawValue
I'm querying an API and I'm retrieving some values that I code into JSON.
One of the attributes is job_type whose value I know that could only take some finite range of values, so I've written:
enum J...
noloman
Votes: 0
Answers: 2