init
TypeScriptstatic init(displayName: string): ResolvedContactSwift declarationinit(displayName: String)struct · iOS 27.0+ · SDK 27.1
struct ResolvedContactContact information to help a search query match references to a person or organization. Use this type to specify details about the person or business that uses your app. When a query matches references to a specific person or business, the information in this structure helps the search tool resolve references to that contact. For example, a query that looks for the author of an email uses this information to resolve a request such as “find the emails that I authored.” Fill in as many fields of this structure as possible with the information available to your app.
static init(displayName: string): ResolvedContactSwift declarationinit(displayName: String)get displayName(): stringSwift declarationvar displayName: StringThe name your app displays for the contact. Use this property to specify the name of a person or business. For example, you might specify “John Appleseed” or “Acme Corp”.
set displayName(value: string)Swift declarationvar displayName: StringThe name your app displays for the contact. Use this property to specify the name of a person or business. For example, you might specify “John Appleseed” or “Acme Corp”.
get phoneNumbers(): Array<string>Swift declarationvar phoneNumbers: [String]The phone numbers for this contact. Specify each phone number as a separate string in the array.
set phoneNumbers(value: Array<string>)Swift declarationvar phoneNumbers: [String]The phone numbers for this contact. Specify each phone number as a separate string in the array.
get emailAddresses(): Array<string>Swift declarationvar emailAddresses: [String]The email addresses for this contact. Specify each email address as a separate string in the array.
set emailAddresses(value: Array<string>)Swift declarationvar emailAddresses: [String]The email addresses for this contact. Specify each email address as a separate string in the array.
get nameComponents(): Array<_Foundation_PersonNameComponents>Swift declarationvar nameComponents: [PersonNameComponents]The contact’s names as a set of structured name components. Specify each distinct name as a separate <doc://com.apple.documentation/documentation/foundation/personnamecomponents> type in the array.
set nameComponents(value: Array<_Foundation_PersonNameComponents>)Swift declarationvar nameComponents: [PersonNameComponents]The contact’s names as a set of structured name components. Specify each distinct name as a separate <doc://com.apple.documentation/documentation/foundation/personnamecomponents> type in the array.
get names(): Array<string>Swift declarationvar names: [String]Alternate names you use to refer to the contact. Specify each alternate name as a separate string in the array.
set names(value: Array<string>)Swift declarationvar names: [String]Alternate names you use to refer to the contact. Specify each alternate name as a separate string in the array.
No declarations were skipped in this snapshot.