diff --git a/Chronos/App/Tabs/Tokens/Row/TOTPRowView.swift b/Chronos/App/Tabs/Tokens/Row/TOTPRowView.swift index 5496f1c..5013da4 100644 --- a/Chronos/App/Tabs/Tokens/Row/TOTPRowView.swift +++ b/Chronos/App/Tabs/Tokens/Row/TOTPRowView.swift @@ -57,11 +57,11 @@ struct TOTPRowView: View { private func updateProgress() { let timeLeft = timeLeftForToken(period: token.period) secsLeft = Int(timeLeft.rounded(.up)) - + // Circle progress will look smooth; however, the high redraw count causes significant CPU load. // progress = timeLeft / Double(token.period) progress = Double(secsLeft) / Double(token.period) - + if secsLeft == token.period { updateOtp() }