simgadget
    Preparing search index...

    Interface TapOptions

    interface TapOptions {
        durationSeconds?: number;
        count?: number;
    }
    Index
    durationSeconds?: number

    Press duration in seconds. A floor of 0.1s is always applied — an instantaneous touch actuates a control about half the time (measured 5/12; with the floor 12/12) — so passing less changes nothing about the touch itself. Above ~0.5s UIKit reads it as a long press.

    One thing it does change, and the one place the number and the asking come apart: on a {label} tap at a toggle, setting this at all makes the gesture a hold, and a hold at a toggle is refused with ToggleGestureError — including at a value under the floor, where the touch delivered would have been identical to the default one. Asking for a duration is what marks a caller as wanting a real press, and a real press at a toggle's centre lands in the gap beside the control. Omit it to get the activation that works.

    count?: number

    Number of taps; 2 = double-tap. Default 1.