Class
ProgressManager
iOS 26.0+
iPadOS 26.0+
Mac Catalyst 26.0+
macOS 26.0+
tvOS 26.0+
visionOS 26.0+
watchOS 26.0+
An object that conveys ongoing progress to the user for a specified task.
@dynamicMemberLookup final class ProgressManager
Topics
Protocols
protocol PropertyA type that conveys additional task-specific information on progress.
Initializers
convenience init(totalCount: Int?)InitializesselfwithtotalCount.
Instance Properties
var completedCount: IntThe completed units of work.var fractionCompleted: DoubleThe proportion of work completed. This takes into account the fraction completed in its children instances if children are present. Ifselfis indeterminate, the value will be 0.0.var isFinished: BoolThe state of completion of work. IfcompletedCount>=totalCount, the value will betrue.var isIndeterminate: BoolThe state of initialization oftotalCount. IftotalCountisnil, the value will betrue.var reporter: ProgressReporterAProgressReporterinstance, used for providing read-only observation of progress updates or composing into otherProgressManagers.var totalCount: Int?The total units of work.
Instance Methods
func assign(count: Int, to: ProgressReporter)Adds aProgressReporteras a child, with its progress representing a portion ofself’s progress.func complete(count: Int)IncreasescompletedCountbycount.func setCounts((inout Int, inout Int?) -> Void)func subprogress(assigningCount: Int) -> SubprogressReturns aSubprogressrepresenting a portion ofselfwhich can be passed to any method that reports progress.func summary(of:)Returns a summary for a custom double property across the progress subtree.
Subscripts
subscript(dynamicMember:)Gets or sets custom duration properties.
Enumerations
Default Implementations
Relationships
Conforms To
Observation.ObservableSwift.CopyableSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.EscapableSwift.HashableSwift.SendableSwift.SendableMetatype