Contents

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.