Skip to content

Instantly share code, notes, and snippets.

@Jiropole
Jiropole / HapticImpact.swift
Created June 21, 2022 18:40
A convenient wrapper exposing the full range of Taptic Engine functions. Helps with the guesswork around timing and energy conservation.
import Foundation
import UIKit
import Combine
/// Wraps the Taptic Engine patterns.
/// For most accurate timing, call `prepare()` within a short interval before `trigger()`.
/// If more than 5 seconds pass after either call, the engine is released to conserve energy.
class HapticImpact {
/// Specifies feedback type, used with the `prepare()` function.
enum ImpactType {
@Jiropole
Jiropole / uvs1.adoc
Last active April 12, 2018 20:08 — forked from jexp/graph_gist_template.adoc
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

UVS Test GraphGist

Introduction

### Keybase proof
I hereby claim:
* I am jiropole on github.
* I am jiropole (https://keybase.io/jiropole) on keybase.
* I have a public key ASAGvRaOapcSvESe2vu75g9q3zCnzVxBQdA_bHHqIQVJpwo
To claim this, I am signing this object: