forked from daria-kopaliani/DAProgressOverlayView
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi there, beautiful progress indicator. I'm getting some strange artifacts though (see below)
I set up the view in interface builder, using constraints to lay it out. Then the following code to control it:
@IBOutlet weak var progressView: DAProgressOverlayView!
override func viewDidLoad() {
...
self.progressView.displayOperationWillTriggerAnimation()
}
func videoCompletedFrames(completed: Int32, ofTotal total: Int32) {
let percent = Float(completed) / Float(total)
dispatch_async(dispatch_get_main_queue()) {
self.progressView.progress = CGFloat(percent)
}
}
Metadata
Metadata
Assignees
Labels
No labels


