Contents

isOptional

A Boolean value that indicates whether the receiver is optional.

Declaration

var isOptional: Bool { get set }

Discussion

true if the receiver is optional, otherwise false. The optionality flag specifies whether a property’s value can be nil before an object can be saved to a persistent store.

Special Considerations

Setting this property raises an exception if the receiver’s model has been used by an object graph manager.

See Also

Accessing Features of a Property