TextFieldKeyboardMonitor
final public class TextFieldKeyboardMonitor
Monitors the iOS keyboard appearance and manipulates a given UIScrollView to keep the content in view when
the keyboard appears. Contains a slot viewToKeepVisible
which when set to a UIView will cause the
monitor to scroll so that the view is visible.
-
The view to keep visible in the scroll view
Declaration
Swift
public var viewToKeepVisible: UIView? { get set }
-
Construct monitor for the given view and scroll view.
Declaration
Swift
public init(view: UIView, scrollView: UIScrollView)
Parameters
view
the view to track and monitor
scrollView
the view to adjust