@@ -32,7 +32,7 @@ struct PushNotificationSettingsView: View {
3232 if viewModel. state. pushNotificationHour == hour &&
3333 viewModel. state. pushNotificationMinute == 0 {
3434 Image ( systemName: " checkmark " )
35- . foregroundStyle ( Color . accentColor )
35+ . foregroundStyle ( Color . blue )
3636 }
3737 }
3838 . contentShape ( Rectangle ( ) )
@@ -48,7 +48,7 @@ struct PushNotificationSettingsView: View {
4848 . foregroundStyle ( . secondary)
4949 if viewModel. state. pushNotificationMinute != 0 {
5050 Image ( systemName: " checkmark " )
51- . foregroundStyle ( Color . accentColor )
51+ . foregroundStyle ( Color . blue )
5252 }
5353 }
5454 . contentShape ( Rectangle ( ) )
@@ -88,7 +88,12 @@ struct PushNotificationSettingsView: View {
8888 . presentationDetents ( [ . height( viewModel. state. sheetHeight) ] )
8989 . onAppear { UIDatePicker . appearance ( ) . minuteInterval = 5 }
9090 . onDisappear { UIDatePicker . appearance ( ) . minuteInterval = 1 /* 기본값으로 복원 */ }
91- . toolbar { toolbar }
91+ . toolbar {
92+ SheetToolbar (
93+ onCancel: { viewModel. send ( . rollbackUpdate) } ,
94+ onConfirm: { viewModel. send ( . confirmUpdate) }
95+ )
96+ }
9297 . background (
9398 GeometryReader { geometry in
9499 Color . clear. onAppear {
@@ -100,40 +105,6 @@ struct PushNotificationSettingsView: View {
100105 }
101106 }
102107
103- @ToolbarContentBuilder
104- private var toolbar : some ToolbarContent {
105- if #available( iOS 26 . 0 , * ) {
106- ToolbarItem ( placement: . topBarLeading) {
107- Button ( role: . cancel) {
108- viewModel. send ( . rollbackUpdate)
109- }
110- }
111-
112- ToolbarItem ( placement: . topBarTrailing) {
113- Button ( role: . confirm) {
114- viewModel. send ( . confirmUpdate)
115- }
116- }
117- } else {
118- ToolbarItem ( placement: . topBarLeading) {
119- Button {
120- viewModel. send ( . rollbackUpdate)
121- } label: {
122- Text ( " 취소 " )
123- }
124- }
125-
126- ToolbarItem ( placement: . topBarTrailing) {
127- Button {
128- viewModel. send ( . confirmUpdate)
129- } label: {
130- Text ( " 확인 " )
131- . bold ( )
132- }
133- }
134- }
135- }
136-
137108 private func formattedTimeString( _ date: Date ) -> String {
138109 let minuteValue = Calendar . current. component ( . minute, from: date)
139110 let formatStyle : Date . FormatStyle = . dateTime. hour ( . twoDigits( amPM: . wide) )
0 commit comments