View ModifieriOS 17.0+macOS 12.0+tvOS 15.0+watchOS 8.0+
Overloads
2 ways to call compose().focusable(). Each is one SwiftUI overload, picked by the arguments you pass.
compose().focusable(isFocusable?: boolean)nonisolated func focusable(_ isFocusable: Bool = true) -> some ViewParameters
isFocusablebooleanA Boolean value that indicates whether this view is focusable.
Return value
A view that sets whether a view is focusable.
See also
More in Focus.
- defaultFocusDefines a region of the window in which default focus is evaluated by assigning a value to a given focus state binding.
- focusedModifies this view by binding its focus state to the given Boolean state value.
- focusEffectDisabledAdds a condition that controls whether this view can display focus effects, such as a default focus ring or hover effect.
- searchFocusedModifies this view by binding the focus state of the search field associated with the nearest searchable modifier to the given Boolean value.