Skip to content

P9 - case "Delete" issues #39

@extrajordanary

Description

@extrajordanary

Errors here from not having access to selectedNote. From prev step I had declared it within the UITableViewDelegate extension, so that should be clarified better.

Additionally these lines should probably just be added in a commented out state so that folks can still build in the following step to see if their ScrollView etc setup works correctly.

case "Delete":
    realm.write() {
        realm.delete(self.selectedNote!)
    }

    let source = segue.sourceViewController as! NoteDisplayViewController
    source.note = nil;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions