<!--
{
  "availability" : [
    "macOS: 12.0.0 -",
    "tvOS: 14.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ResetFocusAction/callAsFunction(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ResetFocusActionV14callAsFunction2inyAA9NamespaceV2IDV_tF"
  },
  "title" : "callAsFunction(in:)"
}
-->

# callAsFunction(in:)

Asks the focus sytem to reevaluate the default focus item.

```
func callAsFunction(in namespace: Namespace.ID)
```

## Parameters

`namespace`

The namespace inside which SwiftUI should
reevaluate default focus. The namespace should match the
[`focusScope(_:)`](/documentation/SwiftUI/View/focusScope(_:)) block where focus requires reevaluation.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)