ScrollDismissesKeyboardMode
The ways that scrollable content can interact with the software keyboard.
Declaration
type ScrollDismissesKeyboardMode = 'automatic' | 'immediately' | 'interactively' | 'never';struct ScrollDismissesKeyboardModePass a literal, or build one with SwiftUI.ScrollDismissesKeyboardMode from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.ScrollDismissesKeyboardMode.automaticDetermine the mode automatically based on the surrounding context.
'immediately'SwiftUI.ScrollDismissesKeyboardMode.immediatelyDismiss the keyboard as soon as scrolling starts.
'interactively'SwiftUI.ScrollDismissesKeyboardMode.interactivelyEnable people to interactively dismiss the keyboard as part of the scroll operation.
'never'SwiftUI.ScrollDismissesKeyboardMode.neverNever dismiss the keyboard automatically as a result of scrolling.
Overview
Use this type in a call to the View.scrollDismissesKeyboard(_:)
modifier to specify the dismissal behavior of scrollable views.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Layout.
- AlignmentAn alignment in both axes.
- ContainerBackgroundPlacementThe placement of a container background.
- ContainerValuesReadableKeys of SwiftUI ContainerValues JavaScript can read.
- ContainerValuesWritableKeys of SwiftUI ContainerValues JavaScript can write.
- ControlSizeThe size classes, like regular or small, that you can apply to controls within a view.
- DocumentLaunchGeometryProxyA proxy for access to the frame of the scene and its title view.
- DynamicTypeSizeA Dynamic Type size, which specifies how large scalable content should be.
- EdgeAn enumeration to indicate one edge of a rectangle.
- EdgeInsetsThe inset distances for the sides of a rectangle.
- EdgeInsetsChainEdgeInsets with chained calls: SwiftUI.EdgeInsets.inset(...).
- EdgeSetAn efficient set of edges.
- GeometryProxyA proxy for access to the size and coordinate space (for anchor resolution) of the container view.