Sets whether this view is focusable and, if so, adds an action to perform when the view comes into focus.
- macOS 10.15+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
A Boolean value that indicates whether this view is focusable.
A closure that’s called whenever this view either gains or loses focus. The Boolean parameter to
truewhen the view is in focus; otherwise, it’s
A view that sets whether a view is focusable, and triggers
on when the view gains or loses focus.