UIViewController
class UIViewController : UIResponder, NSCoding, UIAppearanceContainer, UITraitEnvironment, UIContentContainer, UIFocusEnvironment
-
Register or not the keyboard’s notifications.
Declaration
Swift
open func useKeyboard(_ isUsed: Bool)
-
Called immediately prior to the display of the keyboard.
Declaration
Swift
open func keyboardWillShow(_ notif: NSNotification)
-
Called immediately prior to the dismissal of the keyboard.
Declaration
Swift
open func keyboardWillHide(_ notif: NSNotification)
-
Called immediately after the display of the keyboard.
Declaration
Swift
open func keyboardDidShow(_ notif: NSNotification)
-
Called immediately after the dismissal of the keyboard.
Declaration
Swift
open func keyboardDidHide(_ notif: NSNotification)
-
Animate the bottom inset of the safe area.
Declaration
Swift
@available(iOS 11.0, *) open func animateBottomSafeArea(_ height: CGFloat, duration: TimeInterval = 0.25, options: UIView.AnimationOptions = .curveEaseInOut, completion: ((Bool) -> Void)? = nil)
Parameters
height
The height to add on the safe area bottom.
duration
The animation’s duration.
options
The animation’s UIView.AnimationOptions.
completion
The optional completion block
-
Return the safeAreaFrame for iOS 9.0+
Declaration
Swift
internal var areaFrame: CGRect { get }