Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird shapes / artifacts #4

Open
seanhess opened this issue May 19, 2016 · 0 comments
Open

Weird shapes / artifacts #4

seanhess opened this issue May 19, 2016 · 0 comments

Comments

@seanhess
Copy link

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)
        }
    }

one
two
three

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant