RiValT_TimerArray_Placeholder

class RiValT_TimerArray_Placeholder
extension RiValT_TimerArray_Placeholder: Equatable
extension RiValT_TimerArray_Placeholder: Identifiable
extension RiValT_TimerArray_Placeholder: Hashable

This class allows us to have “placeholders,” for the “add” items at the ends of the rows, or the bottom of the matrix.

  • If this is a placeholder for an existing timer, then we simply supply that.

    Declaration

    Swift

    var timer: Timer?
  • _id

    This is a local UUID for this item.

    Declaration

    Swift

    var _id: UUID
  • Initializer.

    Declaration

    Swift

    init(timer inTimer: Timer? = nil)

    Parameters

    inTimer

    If this represents an existing timer, that is supplied here. It is optional. If not supplied, this is considered an “add item” placeholder.

Equatable Conformance

  • Equatable Conformance.

    Declaration

    Swift

    static func == (lhs: RiValT_TimerArray_Placeholder, rhs: RiValT_TimerArray_Placeholder) -> Bool

    Parameters

    lhs

    The left-hand side of the comparison.

    rhs

    The right-hand side of the comparison.

    Return Value

    True, if they are equal.

Identifiable Conformance

  • id

    If we represent an existing timer, we use that UUID.

    Declaration

    Swift

    var id: UUID { get }

Hashable Conformance

  • Hash dealer.

    Declaration

    Swift

    func hash(into inOutHasher: inout Hasher)

    Parameters

    inOutHasher

    The hasher we’re loading up.