Instance Method

removeFromParent()

Removes the context from its parent.

Declaration

func removeFromParent()

Discussion

If you remove a context from its parent and don’t add it as the child of another context before you call save(completion:), then the framework deletes the context entirely.

See Also

Managing Context Hierarchy

var parent: CLSContext?

The direct ancestor of this context.

func addChildContext(CLSContext)

Adds the specifed context as a child of the context receiving the method call.

func descendant(matchingIdentifierPath: [String], completion: (CLSContext?, Error?) -> Void)

Finds the context with the given identifier path relative to this context.