Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.39 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.39 KB

HapticsButtonSwiftUI

Github issues Github forks Github stars Github top language Github license

Installation

HapticsButtonSwiftUI can be installed with the Swift Package Manager:

https://github.com/SNQ-2001/HapticsButtonSwiftUI

You can also clone the repository and build the library locally.

How to use ?

import HapticsButtonSwiftUI

Button(haptics: .impact(.medium)) {
    // action
} label: {
    Text("Medium")
}

or

import Haptics

Haptics.impact(.medium).play()

or

import Haptics

playImpactHaptic(.medium)

License

HapticsButtonSwiftUI is available under the MIT license. See the LICENSE file for more info.