Contents

container

The operation’s container.

Declaration

var container: CKContainer? { get set }

Discussion

The container defines where the operation executes. The add(_:) method of the CKContainer and CKDatabase classes implicitly set this property to their container.

If you execute the operation yourself, either directly or using a custom operation queue, set the value of this property explicitly. If the value is nil when you execute an operation, the operation implicitly executes in your app’s default container.

See Also

Deprecated Properties