isMe
isMe
isMe Instance Property of INPerson A Boolean value indicating whether the person is the user of the device.
var isMe: Bool { get }Discussion
It’s essential that you set isMe to //com.apple.documentation/documentation/Swift/true for the current device user when creating an INPerson object for use with //com.apple.documentation/documentation/SiriKit/messaging intents. For example, if the sender of an outgoing message is also the user of the device, set isMe to //com.apple.documentation/documentation/Swift/true. Similarly, when creating the recipient array for an incoming message—which should include the current device user—set isMe to //com.apple.documentation/documentation/Swift/true for the person in the recipient list that is the current device user, and set isMe to //com.apple.documentation/documentation/Swift/false for all other recipients.
To set isMe, call the init(personHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:)) method when creating the INPerson object.