SkillAgentSearch skills...

TapticSampler

Code examples of using UIFeedBackGenerator.

Install / Use

/learn @cokaholic/TapticSampler
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

TapticSampler

Code examples of using UIFeedBackGenerator.

Contents

<a name="features"> Features

Platform License Swift

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

<a name="usage"> Usage

<p align="center"> <b> TopViewController</b><br><br> <img src="https://raw.githubusercontent.com/cokaholic/ImageAssets/master/TapticSampler/screenshot.png" width=300> </p>

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.

<p align="center"> <img src="https://raw.githubusercontent.com/cokaholic/ImageAssets/master/TapticSampler/peek_and_pop.png" width=200> </p>
  • UIApplicationShortcutItem
    Feedback occur when you pressed this app strongly from home screen.
<p align="center"> <img src="https://raw.githubusercontent.com/cokaholic/ImageAssets/master/TapticSampler/shortcut.png" width=200> </p>

Sample of UIFeedBackGenerator

  • UIImpactFeedbackGenerator

    • light
    • medium
    • heavy
  • UINotificationFeedbackGenerator

    • error
    • warning
    • success
  • UISelectionFeedbackGenerator

<a name="requirements"> Requirements

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

<a name="author"> Author

Keisuke Tatsumi

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

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated5y ago
Forks0

Languages

Swift

Security Score

80/100

Audited on May 2, 2020

No findings