KeyboardAwareOverlays
public class KeyboardAwareOverlays
This class is to display overlays above the keyboard.
-
Declaration
Swift
public init(controller: UIViewController?)
Parameters
controller
the controller to display overlays.
-
Starts listening for the keyboard events. You should call this method in viewWillAppear() of the view controller.
Declaration
Swift
public func startListeningKeyboardEvents()
-
Stops listen for the keyboard events. You should call this method in viewWillDisappear() of the view controller.
Declaration
Swift
public func stopListeningKeyboardEvents()
-
Displays the overlay inside the view controller.
Declaration
Swift
public func show(_ overlay: OverlayView)
Parameters
overlay
the overlay view to display.
-
Updates the frame of the overlay after layout changes.
Declaration
Swift
public func updateOverlayFrame()
-
Hides all overlays displayed inside the view controller.
Declaration
Swift
public func hide()