Progress

public enum Progress
extension Progress: RawRepresentable
extension Progress: Comparable

Represents the completion progress of a CKRecord save or fetch operation.

  • Initializes a Progress instance from a percentage expressed as a Double in the range [0.0, 100.0].

    Declaration

    Swift

    public init(percent: Double)

    Parameters

    percent

    A Double in the range [0.0, 100.0]. Values are clamped to this range.

    Return Value

    The Progress.

  • The save or fetch operation is complete.

    Declaration

    Swift

    case complete
  • The save or fetch operation is incomplete. percent is a value indicating progress in the range [0.0, 100.0).

    Declaration

    Swift

    case incomplete(percent: Double)
  • Declaration

    Swift

    public var rawValue: Double { get }
  • Declaration

    Swift

    public typealias RawValue = Double
  • Initializes a Progress instance from a percentage expressed as a Double in the range [0.0, 1.0].

    Declaration

    Swift

    public init(rawValue: Double)

    Parameters

    percent

    A Double in the range [0.0, 1.0]. Values are clamped to this range.

    Return Value

    The Progress.

  • Declaration

    Swift

    public static func < (left: Progress, right: Progress) -> Bool