targetContentIdentifier
A string that identifies the user activity’s content.
Declaration
var targetContentIdentifier: String? { get set }Discussion
A target content identifier is a string you define within your app. This string provides a unique identifier for specific content in your app, like a particular document or the location of a piece of data in a database. This string isn’t visible to the user.
If you set this property, when the system delivers an NSUserActivity object to an app with multiple scenes, it chooses the UIScene whose UISceneActivationConditions have the best match with the target content identifier. For more information, see UISceneActivationConditions.
This property is optional but is highly recommended to create a great multitasking experience for apps that run on iPad. Setting this property doesn’t automatically set needsSave to true.