Skip to content

Bool can't add to realm #62

@IAFung

Description

@IAFung

When Bool default value is 'true', can't save to realm
I changed the demo

struct ToDoItem: Realmable {
    var id = UUID().uuidString
    var text = ""
    var isCompleted = true //modified this default value
    
    static func primaryKey() -> String? {
        return "id"
    }
}

when I set the 'isCompleted' default value is true.
can't save the false to the realm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions