Implementing a Sticky Input Field in iOS
medium.com
Implementing a Sticky Input Field in iOS
1–10 of 19 posts
Re: Implementing a Sticky Input Field in iOS
#2 The input field is subview of the keyboard’s window. This is likely undesirable, especially for chat applications.
I am curious as to why this is undesirable. It makes sense to me that something docked to the keyboard would be in the same window.Re: Implementing a Sticky Input Field in iOS
#3Interesting work, thanks for sharing. The input field is subview of the keyboard’s window. This is likely undesirable, especially for chat applications. I am curious as to why this is undesirable. It makes sense to me that something docked to the keyboard would be in the same window.
Re: Implementing a Sticky Input Field in iOS
#4Re: Implementing a Sticky Input Field in iOS
#5I love this. I've actually been using https://github.com/AlexLittlejohn/ALTextInputBar , but this is a well written explanation and solution to the problem.
Re: Implementing a Sticky Input Field in iOS
#6Re: Implementing a Sticky Input Field in iOS
#7Or you can use Slack's open sourced version: https://github.com/slackhq/slacktextviewcontroller
Re: Implementing a Sticky Input Field in iOS
#8Re: Implementing a Sticky Input Field in iOS
#9There's no mention in the article that since iOS 7, there's been a "UIScrollViewKeyboardDismissMode", which allows "interactive" dismissal. It isn't perfect, but the last time I investigated, too many solutions out there involved touching private APIs.
Interactive dismissal only made possible with UIScrollViewKeyboardDismissModeInteractive introduced since iOS 7.
This article described solution for interactive dismissal with `sticky` input field atop the keyboard.