TextWithPhonetics
public struct TextWithPhonetics
extension TextWithPhonetics: Equatable
Represents a localized string with optional phonetics information.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init( plainText: String, plainTextLanguage: String, phoneticString: PhoneticString? = nil )
-
Plan text value.
Declaration
Swift
public let plainText: String
-
Language for the plain text value as an IETF language tag, i.e., a dash-two-letter ISO-639 language code, and a two-letter ISO 3166 country code. Example: “en-US”
Declaration
Swift
public let plainTextLanguage: String
-
Phonetic string, if available.
Declaration
Swift
public let phoneticString: PhoneticString?