To use Lofelt Studio haptics in your app, you must first create a
LofeltHaptics object. You will then be able to issue haptic commands to that object. Note that all of the following code examples are written in Swift.
import LofeltHaptics let haptics = try? LofeltHaptics.init()
You should have only one
LofeltHaptics object in your application. At the time of this writing, this means the
LofeltHaptics object you create is capable of playing back one haptic clip at a time or converting one audio stream to haptics at a time.