-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fixing the text input not being interactive since iOS 11 #624
Conversation
…ne layout. This fixes #604 rendering SLKTVC useless in iOS 11 since UIToolBar's view hierarchy has drastically changed since, conflicting with the internal outlets of SLKTextInputbar
Works for me in our application -- not a contributor but just a user of the library and unsure of what the official procedure for reviews is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing and working on iOS 11. Should be tested on previous versions as well.
It's worth mentioning that I've tested this on iPhone 7/6s and iPad Air 2, using iOS 11 and iOS 10.3 simulators. Anyone with patience and devices, that could test this will get a 💯 badge ;) |
Did a few checks, but not many OS versions |
That's great @lauracpierre! Was that on actual devices? |
Yes, sorry forgot to mention that |
@lauracpierre Thank you! |
You weren't kidding 😅 |
I'm a man of my word 😆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Cheers for doing this.
Thank you !! |
We will be soon pushing a release, with all the iOS 11 bug fixes and polishing. See #607 (comment) |
* Fixed Xcode warnings + deprecating -shouldProcessTextForAutoCompletion: * Making SLKTextInputbar a UIView subclass instead, with its own hairline layout. This fixes slackhq#604 rendering SLKTVC useless in iOS 11 since UIToolBar's view hierarchy has drastically changed since, conflicting with the internal outlets of SLKTextInputbar * Changelog
Works on our app too, at least on all iOS 11 simulators. Thanks for the fix! Will check the thread for the official release. |
Hi everyone, I have the same issue on iOS 11, I updated my pod file to: |
…mpatibility so the bottom edge of the input bar expands to the bottom of the screen Fixes #619
* Update bottom margin to accommodate iPhone X home indicator * Skips the bottom safe area when the textinputbar is hidden * Reverting #624 to be using UIToolbar again, specially for iPhone X compatibility so the bottom edge of the input bar expands to the bottom of the screen Fixes #619 * [skip-ci] updating changelog
Yeah this fixed it for us: Recfive@2b4cee5 |
) * Update bottom margin to accommodate iPhone X home indicator * Skips the bottom safe area when the textinputbar is hidden * Reverting slackhq#624 to be using UIToolbar again, specially for iPhone X compatibility so the bottom edge of the input bar expands to the bottom of the screen Fixes slackhq#619 * [skip-ci] updating changelog
PR Summary
On iOS 11, both,
UIToolbar
andUINavigationBar
have significantly changed internally, with a complete different view hierarchy, causing subclasses to behave strangely. In this case, there were new views laying above SLKTVC's outlets. Even tho #621 fixed it, it was more like a patch, causing us to bring SLKTVC outlets on front of every thing else, constantly.Instead, we're making
SLKTextInputbar
a UIView subclass instead ofUIToolbar
. The only real reason why this has always been a UIToolbar subclass is because we wanted to mimic the same native look and feel of bottom bars, with the same background color and hairline.Please gives this a try, and let us know of any issues with this fix asap, since this is the major bottleneck for fixing other iOS 11 bug related bugs.
Related Issues
Fixes #604
Closes #621