Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
filipealva opened this issue Apr 25, 2016 · 1 comment

Comments

@filipealva
Copy link
Owner

filipealva commented Apr 25, 2016

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 rawValue 1, it causes a crash.
  • selectionStyle: Not working.
  • currentSelectedRow: Usually it sets a initial selected value to PickerView but its not appearing as a public property when exposed to Objective-C (even if it is declared as public in PickerView).

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
Copy link

mmustafasaeed commented Apr 17, 2017

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

@filipealva filipealva changed the title Some properties are not working when using from Objective-C project. [BUG] Some properties are not working when using from Objective-C project. Oct 23, 2018
@filipealva filipealva changed the title [BUG] Some properties are not working when using from Objective-C project. [IMPROVEMENT] Some properties are not working when using from Objective-C project. Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants