longPressGestureDetected(_:)

@IBAction
@MainActor
func longPressGestureDetected(_ inGestureRecognizer: UILongPressGestureRecognizer)

The long-press on the bottom of the screen was detected.

Parameters

inGestureRecognizer

The gesture recognizer that was triggered.

  • This prepares the time set slider.

    Declaration

    Swift

    @MainActor
    func _prepareSlider(atThisLocation inLocation: Float)

    Parameters

    atThisLocation

    A float, from 0, to 1, with the starting thumb location (0 is left, 1 is right).

  • Sets the timer to the given percentage.

    Declaration

    Swift

    @MainActor
    func _setTimerTo(location inLocation: Float)

    Parameters

    location

    The 0 -> 1 location.