If you duplicate the shape for the full bar (the track) then group it with the progress bar you can use the track image as a mask for the progress bar. This will stop the bleeding in PaintCode without needing to use any code at all
To be honest I have yet to play with the Sketch plugin so I can contrast and compare it to the full PaintCode app. We’ll keep you posted if there are any developments on that front, or feel free to share any personal experiences you have with either
Hello
i have a problem: in this code: override func draw(_ rect: CGRect) {
PaintCodeTutorial.drawProgressBar(frame: bounds,
progress: progress)
}
xcode give me this error: Use of instance member ‘drawProgressBar’ on type ‘PaintCodeTutorial’; did you mean to use a value of type ‘ PaintCodeTutorial’ Instead ?
What version of Xcode and Swift are you using? also, ensure that the exported file and class in PaintCode are also PaintCodeTutorial, otherwise you might need to update that so when you access its methods or variables, that it matches what you used to export your assets from PaintCode.
Hi!
What if I want to animate the progress between X and Y progress values?
With a song progress it gives the feeling of animating, but what if I want to actually use animations, like UIViewAnimations or CALayer animations?
is it possible?
This tutorial is more than six months old, so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]