Instance Property

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

var entity: NSEntityDescription

The entity description of the receiver.

var isIndexed: Bool

A Boolean value that indicates whether the receiver should be indexed for searching.

Deprecated
var isTransient: Bool

A Boolean value that indicates whether the receiver is transient.

var name: String

The name of the receiver.

var userInfo: [AnyHashable : Any]?

The user info dictionary of the receiver.