Words
public struct Words : Codable, Equatable
For the Add custom words method, one or more words that are to be added or updated for the custom model and the translation for each specified word. For the List custom words method, the words and their translations from the custom model.
-
The Add custom words method accepts an array of
Wordobjects. Each object provides a word that is to be added or updated for the custom model and the word’s translation. The List custom words method returns an array ofWordobjects. Each object shows a word and its translation from the custom model. The words are listed in alphabetical order, with uppercase letters listed before lowercase letters. The array is empty if the custom model contains no words.Declaration
Swift
public var words: [Word] -
Initialize a
Wordswith member variables.Declaration
Swift
public init( words: [Word] )Parameters
wordsThe Add custom words method accepts an array of
Wordobjects. Each object provides a word that is to be added or updated for the custom model and the word’s translation. The List custom words method returns an array ofWordobjects. Each object shows a word and its translation from the custom model. The words are listed in alphabetical order, with uppercase letters listed before lowercase letters. The array is empty if the custom model contains no words.Return Value
An initialized
Words.
View on GitHub
Words Structure Reference