Instance Method


Set a value in the userInfo dictionary.


func setUserInfoObject(_ objectOrNil: Any?, forKey key: ProgressUserInfoKey)



The object to set for the given key, or nil to remove an existing entry in the dictionary.


The key to use to store the given object.


Use this method to set a value in the userInfo dictionary, with appropriate KVO notification for properties whose values can depend on values in the user info dictionary, like localizedDescription.

Supply a value of nil to remove an existing dictionary entry for a given key.

See Also

Progress Information

var isIndeterminate: Bool

Indicates whether the tracked progress is indeterminate.

var kind: ProgressKind?

A string identifying the kind of progress being made.

var userInfo: [ProgressUserInfoKey : Any]

A dictionary of arbitrary values associated with the receiver.