Contents

userInfo

Global state information about the current domain version.

Declaration

var userInfo: [AnyHashable : Any] { get }

Discussion

Use this dictionary to add state information to the domain. You can then access the userInfo dictionary in predicates for user interactions, file provider actions, and File Provider UI actions using the domainUserInfo context key.

This dictionary must only contain the following types for both its keys and values:

The system expects you to update the domainVersion whenever the value of the userInfo dictionary changes.

See Also

Accessing State Data