Code examples of using UIFeedBackGenerator.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TapticSampler.xcodeproj
TapticSampler
TapticSamplerTests
TapticSamplerUITests
.gitignore
LICENSE
README.md

README.md

TapticSampler

Code examples of using UIFeedBackGenerator.

Contents

Features

Platform License Swift

  • You can try sample of UIKit modules including UIFeedBackGenerator
  • You can try sample of UIFeedBackGenerator
  • Support Swift4

Usage

TopViewController

Sample of UIKit Modules Including UIFeedBackGenerator

  • 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.

Sample of UIFeedBackGenerator

  • UIImpactFeedbackGenerator

    • light
    • medium
    • heavy
  • UINotificationFeedbackGenerator

    • error
    • warning
    • success
  • UISelectionFeedbackGenerator

Requirements

  • Xcode 9.0+
  • Swift 4.0+
  • iOS 10.0+

Author

Keisuke Tatsumi

iOS Application Engineer at AbemaTV Co., Ltd. CyberAgent, Inc.