Skip to content

SNQ-2001/HapticsButtonSwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages