---
title: "Discussion on \"SwiftUI: Disable a view receiving taps\" | Hashnode"
description: "Discussion on \"SwiftUI: Disable a view receiving taps\". Use .allowsHitTesting(false) on the view. This configures whether the view will accept hit test operations.\nApple Docs\nCircle()\n    .frame(width: 200, height: 200)\n    .allowsHitTesting(false)"
url: "https://hashnode.com/posts/swiftui-disable-a-view-receiving-taps/62b2ac0894003a788976fa17"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [SwiftUI: Disable a view receiving taps](https://blog.red.to/swiftui-disable-a-view-receiving-taps?utm_source=hashnode&utm_medium=feed)

Use .allowsHitTesting(false) on the view. This configures whether the view will accept hit test operations. Apple Docs Circle() .frame(width: 200, height: 200) .allowsHitTesting(false)

Jun 22, 2022 · 1 min read · blog.red.to  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)

## Written by

[Red Davis](https://hashnode.com/@reddavis)

@reddavis · Bath, UK

  
[View profile](https://hashnode.com/@reddavis)

iOS @ Numan

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
