func callAsFunction (in: Namespace.ID)
Asks the focus sytem to reevaluate the default focus item.
Availability 有効性
Technology
struct ResetFocusAction
Get the reset
environment value and call it as a function to force a default focus reevaluation at runtime.
var mainNamespace
var resetFocus (\.resetFocus)
var body: some View {
// ...
resetFocus(in: mainNamespace)
// ...
}
func callAsFunction (in: Namespace.ID)
struct DismissAction
struct DismissSearchAction
struct OpenURLAction
struct RefreshAction