Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Allow toasts to adjust for keyboard presentation #170

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Conversation

dwroth
Copy link
Contributor

@dwroth dwroth commented Sep 4, 2024

Allows toasts to adjust themselves upward and downward in response to the software keyboard being presented or dismissed.

Demo.mov

Comment on lines +66 to +67
/// Call this function inside of UIApplicationDelegate's application(_:didFinishLaunchingWithOptions:)
/// to have toasts reposition themselves above the software keyboard
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this being added to UIApplicationDelegate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thumbprint-ios is a framework; it doesn't have an app delegate. Making the call to registerForKeyboardNotifications() would have to be done inside of the app that is importing the framework.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I was under the impression this was iOS repo.

@dwroth dwroth merged commit c81d799 into main Sep 5, 2024
1 check passed
@dwroth dwroth deleted the toast_keyboard branch September 5, 2024 16:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants