Signal-iOS/SignalMessaging/ViewControllers
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
..
AttachmentApprovalViewController.swift WIP: hide caption keyboard 2018-11-26 12:43:28 -07:00
ContactFieldView.swift Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
ContactShareApprovalViewController.swift Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
CountryCodeViewController.h Refine theme. 2018-08-08 15:04:23 -04:00
CountryCodeViewController.m Rework conversation message bubble colors; add "conversation colors" class. 2018-09-27 09:07:47 -04:00
EditContactShareNameViewController.swift Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
MediaMessageView.swift audio player type 2018-10-24 07:46:27 -06:00
MessageApprovalViewController.swift Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
ModalActivityIndicatorViewController.swift Apply -> Never. 2018-08-27 10:21:03 -04:00
NewNonContactConversationViewController.h Refine theme. 2018-08-08 15:04:23 -04:00
NewNonContactConversationViewController.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 2018-09-07 10:00:48 -06:00
OWSNavigationController.h Extract most Gallery functionality from the gallery NavigationController. 2018-11-01 12:53:59 -06:00
OWSNavigationController.m Merge branch 'release/2.32.0' 2018-11-15 10:38:43 -06:00
OWSTableViewController.h Add "add more" button to image picker. Provide caption editing continuity. 2018-11-15 14:10:19 -05:00
OWSTableViewController.m Rework conversation message bubble colors; add "conversation colors" class. 2018-09-27 09:07:47 -04:00
OWSViewController.h Respond to CR. 2018-08-08 15:49:22 -04:00
OWSViewController.m WIP: Media Landscape Mode 2018-11-01 08:43:59 -06:00
ReturnToCallViewController.swift WIP: Media Landscape Mode 2018-11-01 08:43:59 -06:00
ScreenLockViewController.h Add screen lock UI to SAE. 2018-04-20 16:39:35 -04:00
ScreenLockViewController.m WIP: Media Landscape Mode 2018-11-01 08:43:59 -06:00
SelectRecipientViewController.h Refine theme. 2018-08-08 15:04:23 -04:00
SelectRecipientViewController.m Update contacts cells' dependencies. 2018-10-25 09:48:57 -04:00
SelectThreadViewController.h Revert "Add custom themed search bar." 2018-08-22 12:00:44 -06:00
SelectThreadViewController.m Update contacts cells' dependencies. 2018-10-25 09:48:57 -04:00
SharingThreadPickerViewController.h Send multiple attachments from the share extension. 2018-11-13 13:15:54 -05:00
SharingThreadPickerViewController.m Respond to CR. 2018-11-13 13:57:46 -05:00
SheetViewController.swift lighter sheetview handle for dark theme 2018-10-02 09:49:37 -06:00
ViewControllerUtils.h Refine theme. 2018-08-08 15:04:23 -04:00
ViewControllerUtils.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 2018-09-07 10:00:48 -06:00