Attaches the specified map item to a user activity object.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Use this property to share a map item’s location information with other apps so that users can benefit from a more contextually integrated experience. For example, if a user views a location in an app that provides restaurant reviews, this property can make the same location available to the user when they switch to an app that helps them make travel plans.
map property also populates the user activity object’s
content property. After attaching a map item to a user activity object, you can easily adopt app search by setting the object’s
eligible property to
YES. To learn more about participating in app search, see App Search Programming Guide.