Reputation: 138
Is there any way that i can get the meaning of a word from system dictionary. In swift.
class func dictionaryHasDefinition(forTerm term: String) -> Bool
this only can know the word is in the diationary or not
Upvotes: 2
Views: 456
Reputation: 3232
You can not get the meaning of a word from the dictionary. What you can do is you can show the meanings for that word or term that you will be searching for. e.g
let referenceVC = UIReferenceLibraryViewController(term: "home")
self.present(referenceVC, animated: true)
Change "home" with whatever term you will be searching. Also make sure you have dictionaries downloaded in your simulator.
Upvotes: 2