Structure

ResetFocusAction

An environment value that provides the ability to reevaluate default focus.

Declaration 宣言

struct ResetFocusAction

Overview 概要

Get the resetFocus environment value and call it as a function to force a default focus reevaluation at runtime.


@Namespace var mainNamespace
@Environment(\.resetFocus) var resetFocus


var body: some View {
    // ...
    resetFocus(in: mainNamespace)
    // ...
}

Topics 話題

Calling the Action

See Also 参照

Actions