One Logo Pool Ball
SwiftUI · IOS API REFERENCE

SensoryFeedback.Weight

struct · iOS 17.0+ · SDK 27.1

struct Weight

The weight to be represented by a type of feedback. `Weight` values can be passed to `SensoryFeedback.impact(weight:intensity:)`.

Members (3)

get · iOS 17.0+

heavy

TypeScript
static get heavy(): SensoryFeedback_Weight
Swift declaration
static let heavy: SensoryFeedback.Weight

Indicates a collision between large or heavyweight UI objects.

get · iOS 17.0+

light

TypeScript
static get light(): SensoryFeedback_Weight
Swift declaration
static let light: SensoryFeedback.Weight

Indicates a collision between small or lightweight UI objects.

get · iOS 17.0+

medium

TypeScript
static get medium(): SensoryFeedback_Weight
Swift declaration
static let medium: SensoryFeedback.Weight

Indicates a collision between medium-sized or medium-weight UI objects.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →