SwiftEntryKit v0.7.1 Release Notes
-
🔋 Feature - Add a way to make a specific text field first responder in
EKFormMessageView
Related issue: Best way to present keyboard #107. The window must be a key window, so setting
presentInsideKeyWindow
totrue
is necessary to achieve that goal. Likewise:SwiftEntryKit.display(entry: formMessageView, using: attributes, presentInsideKeyWindow: true)
It is recommended to set
lifecycleEvents.didAppear
to perform the keyboard showing action. For example:attributes.lifecycleEvents.didAppear = { formMessageView.becomeFirstResponder(with: 0) }