KeyboardNotification

public struct KeyboardNotification

An object containing the key animation properties from NSNotification

Properties

  • The event that triggered the transition

    Declaration

    Swift

    public let event: KeyboardEvent
  • The animation length the keyboards transition

    Declaration

    Swift

    public let timeInterval: TimeInterval
  • The animation properties of the keyboards transition

    Declaration

    Swift

    public let animationOptions: UIView.AnimationOptions
  • iPad supports split-screen apps, this indicates if the notification was for the current app

    Declaration

    Swift

    public let isForCurrentApp: Bool
  • The keyboards frame at the start of its transition

    Declaration

    Swift

    public var startFrame: CGRect
  • The keyboards frame at the beginning of its transition

    Declaration

    Swift

    public var endFrame: CGRect
  • Requires that the NSNotification is based on a UIKeyboard... event

    Declaration

    Swift

    public init?(from notification: NSNotification)

    Parameters

    notification

    KeyboardNotification