Skip to content

Commit

Permalink
Refactor: set preview's progressAmount
Browse files Browse the repository at this point in the history
  • Loading branch information
grootwo committed May 23, 2024
1 parent 76f8b41 commit 6fa8b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LiveTimeWidget/LiveTimeWidget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion MC2-Team3-Pilling/View/LiveActivityTestView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6fa8b0b

Please sign in to comment.