filipealva / PickerView

🔸 A customizable alternative to UIPickerView in Swift.
MIT License
527 stars 92 forks source link

[IMPROVEMENT] Some properties are not working when using from Objective-C project. #11

Open filipealva opened 8 years ago

filipealva commented 8 years ago

Some people reach me out reporting about some properties which aren't working when PickerView is implemented in an Objective-C project.

The known properties with issues:

Unfortunately I can't fix this right now, so I'm opening this issue as a [help-wanted].

If you can help, please interact here and/or submit a pull request.

Thanks.

mmustafasaeed commented 7 years ago

Optional values of non-Objective-C types aren't bridged into Objective-C. So for currentSelectedRow change it from Int! to NSNumber and convert the object to its intValue. This should fix the inaccessible variable.

In your case, you can either convert lat and long to be non-Optional or switch them to be instances of NSNumber