Skip to content

code in swift readme will not compile #18

@elements-of-boredom

Description

@elements-of-boredom

I'm not sure if its due to Swift 1.2 however in step 12 the below code results in "Cannot assign to the result of this expression"
rev["check"] = !wasChecked
I believe rev.properties["check"] = !wasChecked is either what was meant to be, or now needs to be.

Also in step 13, when properties is declared it needs to be explicitly declared as a Dictionary or by default its created as NSDictionary and requires casting when passed into doc.putProperties

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions