Code examples of using UIFeedBackGenerator.
- You can try sample of UIKit modules including UIFeedBackGenerator
- You can try sample of UIFeedBackGenerator
- Support
Swift4
-
UIRefreshControl
Feedback occur when you pulled down screen. -
UISwitch
Feedback occur when you changed switch. -
UIPickerView
Feedback occur when you changed picker. -
Peek and Pop
Feedback occur when you pressed "Peek and Pop" cell strongly.
- UIApplicationShortcutItem
Feedback occur when you pressed this app strongly from home screen.
-
UIImpactFeedbackGenerator
- light
- medium
- heavy
-
UINotificationFeedbackGenerator
- error
- warning
- success
-
UISelectionFeedbackGenerator
- Xcode 9.0+
- Swift 4.0+
- iOS 10.0+
Keisuke Tatsumi
iOS Application Engineer at AbemaTV Co., Ltd. CyberAgent, Inc.