Hi Kaandedeoglu, I used this lib to show circular progress view on a view controller and after finishing animation, I want to push or present to another view controller, app is crashed because new window is nil.
This bug is here:
public override func didMoveToWindow() {
progressLayer.contentsScale = window!.screen.scale
}
It should be:
public override func didMoveToWindow() {
if let window = window {
progressLayer.contentsScale = window.screen.scale
}
}
Best regards !
Hi Kaandedeoglu, I used this lib to show circular progress view on a view controller and after finishing animation, I want to push or present to another view controller, app is crashed because new window is nil. This bug is here: public override func didMoveToWindow() { progressLayer.contentsScale = window!.screen.scale } It should be: public override func didMoveToWindow() { if let window = window { progressLayer.contentsScale = window.screen.scale } } Best regards !