I had been working making a swift implementation of this question iPhone: Change Keyboard language programmatically but I found something that i can't figure out how to fix,
This method crash my application
UITextInputMode.activeInputModes() //this crashes
This method is the analog in swift of this method in Objective C
[UITextInputMode activeInputModes] //this works ok
This is the crash
So my question is: Is this a bug in Swift? Or am I doing something wrong?