TextWithPhonetics
public struct TextWithPhonetics : Equatable
Represents a localized string with optional phonetics information.
-
Creates an instance with the specified parameters.
Throws
An error of the typeInitializationError.Declaration
Swift
public init( plainText: String, plainTextLanguage: Locale, phoneticString: PhoneticString? = nil ) throwsParameters
plainTextPlain text value.
plainTextLanguageLocalefor the plain text value.phoneticStringPhonetic string, if available.
-
Plan text value.
Declaration
Swift
public let plainText: String -
Localefor the plain text value.Declaration
Swift
public let plainTextLanguage: Locale -
Phonetic string, if available.
Declaration
Swift
public let phoneticString: PhoneticString?
-
Exceptions that can be thrown during the creation of
See moreTextWithPhonetics.Declaration
Swift
public enum InitializationError : Error
TomTom SDK for iOS (0.53.1)
TextWithPhonetics