01
Disable Touches with allowsHitTesting in SwiftUI
SwiftUIGesturesUI
Learn how to use the allowsHitTesting modifier to make views ignore touches, letting taps pass through to elements behind them.
READ_ARTICLE
// 4 articles available
Learn how to use the allowsHitTesting modifier to make views ignore touches, letting taps pass through to elements behind them.
Learn how to detect when users shake their device in SwiftUI by bridging to UIKit's motion events and creating a reusable view modifier.
Learn how to use the contentShape modifier to expand or customize the tappable area of your SwiftUI views, making buttons and interactive elements more user-friendly.
Learn how to detect when a context menu is open in SwiftUI.