From 6fa8b0b903fc8225c25fe56888986425d4f61034 Mon Sep 17 00:00:00 2001 From: soaringwave <82134672+treesofgroo@users.noreply.github.com> Date: Thu, 23 May 2024 09:15:30 +0900 Subject: [PATCH] Refactor: set preview's progressAmount --- LiveTimeWidget/LiveTimeWidget.swift | 2 +- MC2-Team3-Pilling/View/LiveActivityTestView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LiveTimeWidget/LiveTimeWidget.swift b/LiveTimeWidget/LiveTimeWidget.swift index c996fcc..c7d2324 100644 --- a/LiveTimeWidget/LiveTimeWidget.swift +++ b/LiveTimeWidget/LiveTimeWidget.swift @@ -89,7 +89,7 @@ struct TimeWidgetView: View { // preview 설정 extension LiveTimeAttributes.ContentState { fileprivate static var start: LiveTimeAttributes.ContentState { - LiveTimeAttributes.ContentState(restOfTime: "3분 3초", progressAmount: 0, step: 1) + LiveTimeAttributes.ContentState(restOfTime: "3분 3초", progressAmount: 8, step: 1) } fileprivate static var middle: LiveTimeAttributes.ContentState { diff --git a/MC2-Team3-Pilling/View/LiveActivityTestView.swift b/MC2-Team3-Pilling/View/LiveActivityTestView.swift index 0a3eda9..6b8b2d4 100644 --- a/MC2-Team3-Pilling/View/LiveActivityTestView.swift +++ b/MC2-Team3-Pilling/View/LiveActivityTestView.swift @@ -19,7 +19,7 @@ struct LiveActivityTestView: View { return formatter }() - @State private var alarmTime = dateFormatter.date(from: "\(Date.now.formatted(date: .numeric, time: .omitted))_00:17:30")! + @State private var alarmTime = dateFormatter.date(from: "\(Date.now.formatted(date: .numeric, time: .omitted))_09:13:00")! @State private var currentDate = Date.now var restOfTime: TimeInterval { currentDate.timeIntervalSince(alarmTime)