Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard Notification Parsing #3

Open
nhgrif opened this issue Apr 23, 2016 · 0 comments
Open

Keyboard Notification Parsing #3

nhgrif opened this issue Apr 23, 2016 · 0 comments

Comments

@nhgrif
Copy link
Contributor

nhgrif commented Apr 23, 2016

Currently, BaseCamp exposes a framesForKeyboardNotification(notification: NSNotification) which returns a tuple containing the start and end rects for the keyboard change.

This is not returning all of the possible information, and it's really clumsy to deal with the tuple return type.

The keyboard animation notifications include at least two other properties. One represents the animation duration, and the other represents the animation curve.

BaseCamp should add a KeyboardAnimation model object which looks something like this:

public struct KeyboardAnimation {
    public let beginFrame: CGRect
    public let endFrame: CGRect
    public let animationDuration: NSTimeInterval
    public let animationCurve: UIViewAnimationCurve
    public let animationOptions: UIViewAnimationOptions

    public init?(notification: NSNotification)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant