# SwiftUI: Disable a view receiving taps

Use `.allowsHitTesting(false)` on the view. This configures whether the view will accept hit test operations.

[Apple Docs](https://developer.apple.com/documentation/swiftui/form/allowshittesting(_:))

```swift
Circle()
    .frame(width: 200, height: 200)
    .allowsHitTesting(false)
```
