Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A swift data object with a generic field
struct UserAttribute: Codable, Equatable {
// MARK: - JSON parse
var name: String?
var type: String?
var match: String?
var value: Any?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment