A combination of permission and access options made available to the user when viewing screens presented by the CloudKit sharing controller.
- iOS 10.0+
UICloud user interface displays permission options to the user. The user selects the options based on how the data should be shared. For instance, the user can decide to share the data publicly or privately by selecting the corresponding option.
available property on
UICloud to one or more
UICloud options tells the controller which options to present to the user. If you want, for example, to let the user decide whether to share the data publicly or privately, you specify the
allow options for
available. This tells the controller to display both options to the user.
Specifying no options for
UICloud to display all options to the user.
UICloud displays the permission options to the user based on the options set in the
available property. The user interface displays the options in two groups, access options group and permission options group. The
allow options control the display of the access options group, while the
allow options control the display of the permission options group.
allow options are complementary. If you exclude one, the access options group is omitted from the
UICloud user interface, and the
share access setting defaults to the included option. This prevents the user from changing the access rights to the share. For instance, to always force a private share, you would include the
allow access option while excluding
allow when setting the
available property. The controller sets the share's access rights to private and removes the access options group from the user interface, preventing the user from changing the setting.
allow complement each other. Excluding one removes the permission options group from the user interface, and the
share permission setting defaults to the included