Declaration
compose().allowsHitTesting(enabled: boolean)nonisolated func allowsHitTesting(_ enabled: Bool) -> some ViewParameters
enabled*boolean
Discussion
Specify true to indicate this view participates in hit testing for
a method such as NSHostingView.hitTest(_:) to determine whether
a point is inside a view. Otherwise specify false.
For more information, see doc://com.apple.documentation/documentation/appkit/nsview/hittest(_:).
See also
More in Input and interaction.
- allowsWindowActivationEventsConfigures whether gestures in this view hierarchy can handle events that activate the containing window.
- buttonRepeatBehaviorSets whether buttons in this view should repeatedly trigger their actions on prolonged interactions.
- disabledAdds a condition that controls whether someone can interact with this view.
- handlesExternalEventsSpecifies the external events that the view's scene handles if the scene is already open.
- helpAdds help text to a view using a localized string resource that you provide.
- invalidatableContentMark the receiver as their content might be invalidated.
- keyboardShortcutAssigns a keyboard shortcut to the modified control.
- scrollClipDisabledSets whether a scroll view clips its content to its bounds.
- scrollDisabledDisables or enables scrolling in scrollable views.
- scrollDismissesKeyboardConfigures the behavior in which scrollable content interacts with the software keyboard.
- sensoryFeedbackPlays the specified feedback when the provided trigger value changes.
- userActivityAdvertises a user activity type.