SwiftUI: Disable a view receiving taps
Published
โข1 min readUse .allowsHitTesting(false) on the view. This configures whether the view will accept hit test operations.
Circle()
.frame(width: 200, height: 200)
.allowsHitTesting(false)
Search for a command to run...
Use .allowsHitTesting(false) on the view. This configures whether the view will accept hit test operations.
Circle()
.frame(width: 200, height: 200)
.allowsHitTesting(false)
-> Link
Extensions and additions to AsyncSequence, AsyncStream and AsyncThrowingStream.
Validations in Swift
This thread about how Netflix generate it's thumbnail artwork is rather ๐