Is this a bug or the expected behaviour?
var progress = itemProvider.loadFileRepresentation(
forTypeIdentifier: id,
completionHandler: { [self] (u, error) in
//...
})
var timer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { [self] timer in
print("\(progress?.completedUnitCount)/\(progress?.totalUnitCount)")
}
this always prints 100/100
2
0
1.6k