SwiftUI: Disable a view receiving taps
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, 20221 min read121
Search for a command to run...
Articles tagged with #swift
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)
Extensions and additions to AsyncSequence, AsyncStream and AsyncThrowingStream.
Validations in Swift
Find the Xcode 13's simulator and SwiftUI previews using a poop ton of CPU? This solved it for me (in activity monitor the process appears as "Spotlight")