From 49b282d960e9b1c56342e41f419be3b593a44d5f Mon Sep 17 00:00:00 2001 From: filblue Date: Thu, 7 Sep 2023 13:45:41 +0100 Subject: [PATCH] [fix] Duration.seconds -> .minutes in StandupForm.swift --- Examples/Standups/Standups/StandupForm.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/Standups/Standups/StandupForm.swift b/Examples/Standups/Standups/StandupForm.swift index b8c05a54333d..23f4a21c0a6a 100644 --- a/Examples/Standups/Standups/StandupForm.swift +++ b/Examples/Standups/Standups/StandupForm.swift @@ -68,7 +68,7 @@ struct StandupFormView: View { TextField("Title", text: viewStore.$standup.title) .focused(self.$focus, equals: .title) HStack { - Slider(value: viewStore.$standup.duration.seconds, in: 5...30, step: 1) { + Slider(value: viewStore.$standup.duration.minutes, in: 5...30, step: 1) { Text("Length") } Spacer() @@ -120,7 +120,7 @@ struct ThemePicker: View { } extension Duration { - fileprivate var seconds: Double { + fileprivate var minutes: Double { get { Double(self.components.seconds / 60) } set { self = .seconds(newValue * 60) } }