Instance Method インスタンスメソッド

callAsFunction(in:)

Asks the focus sytem to reevaluate the default focus item.

Declaration 宣言

func callAsFunction(in namespace: Namespace.ID)

Parameters パラメータ

namespace

The namespace inside which SwiftUI should reevaluate default focus. The namespace should match the focusScope(_:) block where focus requires reevaluation.

Discussion 議論

The focus system reevaluates default focus when the currently-focused item is within the provided namespace.