Changing a text-fields preferred language

Hi, I'm completely new to Swift development, and fairly new to programming in general, so if my problem has any solution, please don't hesitate to give elaborate answers ^^


To start off my programming in Swift I plan on making a small glossary-app that should help someone learning a new language practice words (set by user) in their new language. The way I want this to happen is to let the user submit words in both their native language and in the language they are trying to learn, so that each word can be shown as a "question" and then reveal the answer.


In order for this to be efficient I want the user to choose two languages (based on their current enabled keyboards) when creating a glossary, and then create two columns of UITextFields that are each set to one of these two languages (think: left column English, right column Chinese). Is there any way to implement such a feature? To "set" the preferred language for a TextField?


I've googled a bit, and I saw someone come up with an Objective C solution to this, but I havent been able to find something similar for swift. I'm only assuming this would have become possible when third-party keyboards were allowes.


Thanks in advance

Changing a text-fields preferred language
 
 
Q