---
title: "callAsFunction(in:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/resetfocusaction/callasfunction(in:)"
---

# callAsFunction(in:)

Asks the focus sytem to reevaluate the default focus item.

## Declaration

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

## Parameters

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

## Discussion

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