immediately
TypeScriptstatic get immediately(): ScrollDismissesKeyboardModeSwift declarationstatic var immediately: ScrollDismissesKeyboardMode { get }Dismiss the keyboard as soon as scrolling starts.
struct · iOS 16.0+ · SDK 27.1
struct ScrollDismissesKeyboardModeThe ways that scrollable content can interact with the software keyboard. Use this type in a call to the ``View/scrollDismissesKeyboard(_:)`` modifier to specify the dismissal behavior of scrollable views.
static get immediately(): ScrollDismissesKeyboardModeSwift declarationstatic var immediately: ScrollDismissesKeyboardMode { get }Dismiss the keyboard as soon as scrolling starts.
static get interactively(): ScrollDismissesKeyboardModeSwift declarationstatic var interactively: ScrollDismissesKeyboardMode { get }Enable people to interactively dismiss the keyboard as part of the scroll operation. The software keyboard's position tracks the gesture that drives the scroll operation if the gesture crosses into the keyboard's area of the display. People can dismiss the keyboard by scrolling it off the display, or reverse the direction of the scroll to cancel the dismissal.
static get never(): ScrollDismissesKeyboardModeSwift declarationstatic var never: ScrollDismissesKeyboardMode { get }Never dismiss the keyboard automatically as a result of scrolling.
static get automatic(): ScrollDismissesKeyboardModeSwift declarationstatic var automatic: ScrollDismissesKeyboardMode { get }Determine the mode automatically based on the surrounding context. By default, a ``TextEditor`` is interactive while a ``List`` of scrollable content always dismiss the keyboard on a scroll, when linked against iOS 16 or later.
No declarations were skipped in this snapshot.