Skip to content

Commit 93e2b8f

Browse files
committed
Add a quick fix for progress ring position in demo mode
1 parent 6141062 commit 93e2b8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Authenticator/Source/ProgressRingView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class ProgressRingView: UIView {
8484
let animation = CABasicAnimation(keyPath: path)
8585
let now = layer.convertTime(CACurrentMediaTime(), from: nil)
8686
animation.beginTime = now + viewModel.startTime.timeIntervalSinceNow
87+
if CommandLine.isDemo {
88+
animation.beginTime -= DisplayTime.demoTime.date.timeIntervalSinceNow
89+
}
8790
animation.duration = viewModel.duration
8891
animation.fromValue = 0
8992
animation.toValue = 1

0 commit comments

Comments
 (0)