SensoryFeedbackWeight

The weight to be represented by a type of feedback.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+visionOS 26.0+SensoryFeedback.Weight in SwiftUI

Declaration

React
type SensoryFeedbackWeight = 'heavy' | 'light' | 'medium';
Swift
struct Weight

Pass a literal, or build one with SwiftUI.SensoryFeedbackWeight from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

Weight values can be passed to SensoryFeedback.impact(weight:intensity:).

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Input and interaction.