#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIImpactFeedbackGenerator.h // UIKit // // Copyright © 2016-2018 Apple Inc. All rights reserved. // #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) typedef NS_ENUM(NSInteger, UIImpactFeedbackStyle) { UIImpactFeedbackStyleLight, UIImpactFeedbackStyleMedium, UIImpactFeedbackStyleHeavy, UIImpactFeedbackStyleSoft API_AVAILABLE(ios(13.0)), UIImpactFeedbackStyleRigid API_AVAILABLE(ios(13.0)) }; // UIImpactFeedbackGenerator is used to give user feedback when an impact between UI elements occurs UIKIT_EXTERN API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR @interface UIImpactFeedbackGenerator : UIFeedbackGenerator - (instancetype)initWithStyle:(UIImpactFeedbackStyle)style; /// call when your UI element impacts something else - (void)impactOccurred; /// call when your UI element impacts something else with a specific intensity [0.0, 1.0] - (void)impactOccurredWithIntensity:(CGFloat)intensity API_AVAILABLE(ios(13.0)); @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif