prefersToActivateForTargetContentIdentifierPredicate
The set of conditions for which UIKit chooses to activate this scene over others.
Declaration
@NSCopying var prefersToActivateForTargetContentIdentifierPredicate: NSPredicate { get set }Discussion
Use this property to specify which tasks you want this scene to handle. UIKit evaluates your predicate against the targetContentIdentifier property of the object causing the activation of the scene. Many different objects contain target content identifiers, including NSUserActivity, UNNotificationContent, and UIApplicationShortcutItem.
UIKit must be able to evaluate your predicate’s conditions outside the scope of your app, so don’t include conditions that require dynamic evaluation. For example, don’t include key paths in your predicate and don’t create predicates that evaluate conditions using selectors or blocks. The default value of this property is a predicate that always evaluates to the value false.