Latest 1.0.2
Homepage https://github.com/KimDarren/HapTic
License MIT
Platforms ios 8.0, requires ARC
Authors

Use iOS (>=10.0) HapTic API easily with Swift.

Swift
CocoaPods

Usage

  1. First, import HapTic

    import HapTic
  2. Make HapTic with type.

    HapTic.make(.impact(.heavy))

    It is simple, right?

HapTic Feedback types

There’s three feedback types in iOS.

Button with HapTic

This project includes HapTicButton, subclass of UIButton.

  • Initialize button with feedbackType

    let button = HapTicButton(feedbackType: .selection)
  • Or, set feedbackType after initialize the button.

    let button = HapTicButton()
    button.feedbackType = .selection

Installation

  • Install with Cocoapods

    pod 'HapTic', '~> 1.0'

Requirements

  • iOS >= 10.0
    • But, feel free to use HapTic and HapTicButton under iOS 10.0. The codes to handle exceptions under iOS10 are included.

Demo

Run Demo on your iPhone. (It is so bad that cannot feel HapTic with iOS Simulator)

Contribution

I’m a Swift-learner. If some bad codes are included in this project, PLEASE contribute with Pull request.

Author

HapTic is written by Taejun Kim (KimDarren).

Licenses

HapTic is under MIT license. See the LICENSE for more info.

Latest podspec

{
    "name": "HapTic",
    "version": "1.0.2",
    "summary": "Use iOS HapTic API easily with Swift.",
    "homepage": "https://github.com/KimDarren/HapTic",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "KimDarren": "[email protected]"
    },
    "source": {
        "git": "https://github.com/KimDarren/HapTic.git",
        "tag": "1.0.2"
    },
    "source_files": "Sources/*.swift",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This