Instance Property

container

The container to use for the operation.

Declaration

var container: CKContainer? { get set }

Discussion

The container sets the context for where the operation should perform its work. The add(_:) method of both the CKContainer and CKDatabase classes implicitly sets the value of this property to their container.

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