I have a Swift class:
class MyTextField : NSObject, UITextFieldDelegate {
var myField: UITextField
// no idea how to pass in my UITextField from Objective-C code
init (x: UITextField) {
myField = x;
}
}
I have added a property (not shown) so I could set myField, and everything is working.
Would like to use the init function, if only the syntax were not a complete mystery. Any ideas?