RiValT_CirlcleDisplayView

@MainActor
class RiValT_CirlcleDisplayView : UIView

This draws the circle that represents elapsed time.

It does this by creating layers, each containing the portion of the timer that represents a threshold.

As the timer progresses, the layers disappear, counter-clockwise.

  • The proportion of the total display, occupied by this display.

    Declaration

    Swift

    @MainActor
    private static let _circleRadiusProportion: CGFloat
  • The opacity, when the display is disabled.

    Declaration

    Swift

    @MainActor
    private static let _disabledOpacity: Float
  • The time that the transition takes, when going from one second to the next.

    Declaration

    Swift

    @MainActor
    private static let _transitionTimeInSeconds: CFTimeInterval
  • This has the circle layer that was previously set.

    Declaration

    Swift

    @MainActor
    private weak var _circleLayer: CAShapeLayer?
  • The timer assigned to this instance.

    Declaration

    Swift

    @MainActor
    weak var timer: Timer? { get set }
  • Called when the subviews are laid out. We create the circle here.

    Declaration

    Swift

    @MainActor
    override func layoutSubviews()