session-ios/SignalMessaging
Michael Kirk b108f284bd WIP: hide caption keyboard
It's tricky because we're hopping from one first responder to another.

Specifically, from the CaptionView.textView, which shows the keyboard, to
making the AttachmentApprovalViewController first responder, which shows the
BottomToolbar message text field, so in short order, we're getting multiple
notifications.

User hit's "Done" with caption

- Point A - CaptionView is positioned at the top of the keyboard
- Hide keyboard (frame change details must be calculated by y offset, since willChanage notification doesn't "shrink" the keyboard frame, it just offsets it to be non-visible.
- Point B - caption view is positioned at the bottom of the screen, input accessory view not visible
- Show Keyboard (not actually showing the *keyboard* here, but rather the VC's input accessory view)
- Point C - caption view is positioned atop the input accessory view

We want to animated smoothly from A->C, skipping B. But how do we do that robustly? We could track something like "last known input accessory view height" and never present the captionView below that. But I'm worried it won't be very robust since the input accessory view can change height, e.g. text view grows with text content or dynamic text changes.
2018-11-26 12:43:28 -07:00
..
appearance Sender Rail 2018-11-15 12:25:28 -06:00
attachments Respond to CR. 2018-11-15 14:10:19 -05:00
categories CR: rename colors 2018-11-15 10:23:53 -06:00
contacts Fix edge cases around registration. 2018-11-26 09:58:59 -05:00
environment Fix missing albumMessageId. 2018-11-09 17:49:08 -05:00
Models Revert 'new sort id'. 2018-09-27 19:40:51 -04:00
profiles Only fetch profiles in the main app. 2018-11-13 13:15:11 -05:00
utils Send multiple attachments from the share extension. 2018-11-13 13:15:54 -05:00
viewControllers Move SM singletons to Environment. 2018-10-15 11:34:42 -04:00
ViewControllers WIP: hide caption keyboard 2018-11-26 12:43:28 -07:00
ViewModels Add debug UI for multi-image sends. 2018-11-02 13:04:05 -04:00
Views New "add caption" and "done" assets 2018-11-26 12:43:28 -07:00
Info.plist Shared framework between app and extension 2017-11-29 13:58:27 -08:00
SignalMessaging-Prefix.pch Pull out SignalCoreKit. 2018-10-01 09:06:40 -04:00
SignalMessaging.h Sync "show UD indicators" setting. 2018-10-16 17:42:54 -04:00