Adding ScrollingPageControl to bottom toolbar causes button to not work
Closed this issue · 3 comments
I've encountered an interesting issue, where on iPhone 11 Pro Max, when the scrollingPageControl is added to the toolbar, it causes the like button to not be clickable.
One way a user could get it to work is to click on a different button on the toolbar, which magically gets the 'like' button to be responsive. I have a 'fixed spaced' item on either side of the pageControl; so it shouldn't be an issue with overlapping views.
Any thoughts on this would be appreciated. thanks!
-Weston
I fixed the issue by removing the UIView that held the ScrollingPageControl outlet from the Page Button Item (but keeping the button item) on the storyboard and its respective outlet in the VC. Then instantiated a member variable for ScrollingPageControl (with autoLayout enabled) in the toolbar subclass and added that to the pageButtonItem.customView property.
Thanks for this cocoaPod!