[IMPROVEMENT] Some properties are not working when using from Objective-C project.
filipealva opened this issue · comments
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:
scrollingStyle
: When its set to.Infinite
, or rawValue1
, it causes a crash.selectionStyle
: Not working.currentSelectedRow
: Usually it sets a initial selected value toPickerView
but its not appearing as a public property when exposed to Objective-C (even if it is declared aspublic
inPickerView
).
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.
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