filipealva / PickerView

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

Empty, selectable entry is shown on iOS 10 #48

Closed Mershl closed 5 years ago

Mershl commented 5 years ago

Pod used: - PickerView (0.3.4)

We've integrated the example project and tested it on iOS 10 and iOS12. On iOS 10 an empty entry is shown before the first entry and it's selectable. I suspect this in an layout issue. Here's a screencast of the issue in action:

kapture 2018-10-11 at 11 33 07

filipealva commented 5 years ago

Hi @Mershl,

Sorry about the delay. I could reproduce this issue, the problem is that the PickerView is built on top of a UITableView and it can't have its contentInset affected by anything.

You probably have set this view controller to automaticallyAdjustsContentInset, to fix this behavior you just need to set it to false or uncheck the option on your storyboard file.

You can see the option on this answer.