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
Word
objects. 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 ofWord
objects. 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
Words
with member variables.Declaration
Swift
public init( words: [Word] )
Parameters
words
The Add custom words method accepts an array of
Word
objects. 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 ofWord
objects. 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
.