You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-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.
7 years ago
..
AttachmentApprovalViewController.swift WIP: hide caption keyboard 7 years ago
ContactFieldView.swift Rename fail macros in Swift. 7 years ago
ContactShareApprovalViewController.swift Rename fail macros in Swift. 7 years ago
CountryCodeViewController.h Refine theme. 7 years ago
CountryCodeViewController.m Rework conversation message bubble colors; add "conversation colors" class. 7 years ago
EditContactShareNameViewController.swift Rename fail macros in Swift. 7 years ago
MediaMessageView.swift audio player type 7 years ago
MessageApprovalViewController.swift Rename fail macros in Swift. 7 years ago
ModalActivityIndicatorViewController.swift Apply -> Never. 7 years ago
NewNonContactConversationViewController.h Refine theme. 7 years ago
NewNonContactConversationViewController.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 7 years ago
OWSNavigationController.h Extract most Gallery functionality from the gallery NavigationController. 7 years ago
OWSNavigationController.m Merge branch 'release/2.32.0' 7 years ago
OWSTableViewController.h Add "add more" button to image picker. Provide caption editing continuity. 7 years ago
OWSTableViewController.m Rework conversation message bubble colors; add "conversation colors" class. 7 years ago
OWSViewController.h Respond to CR. 7 years ago
OWSViewController.m WIP: Media Landscape Mode 7 years ago
ReturnToCallViewController.swift WIP: Media Landscape Mode 7 years ago
ScreenLockViewController.h Add screen lock UI to SAE. 7 years ago
ScreenLockViewController.m WIP: Media Landscape Mode 7 years ago
SelectRecipientViewController.h Refine theme. 7 years ago
SelectRecipientViewController.m Update contacts cells' dependencies. 7 years ago
SelectThreadViewController.h Revert "Add custom themed search bar." 7 years ago
SelectThreadViewController.m Update contacts cells' dependencies. 7 years ago
SharingThreadPickerViewController.h Send multiple attachments from the share extension. 7 years ago
SharingThreadPickerViewController.m Respond to CR. 7 years ago
SheetViewController.swift lighter sheetview handle for dark theme 7 years ago
ViewControllerUtils.h Refine theme. 7 years ago
ViewControllerUtils.m Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics 7 years ago