diff --git a/Keychy/Keychy/Presentation/Home/Views/Alarm/AlarmView.swift b/Keychy/Keychy/Presentation/Home/Views/Alarm/AlarmView.swift index 1616f1a77..92639e847 100644 --- a/Keychy/Keychy/Presentation/Home/Views/Alarm/AlarmView.swift +++ b/Keychy/Keychy/Presentation/Home/Views/Alarm/AlarmView.swift @@ -41,7 +41,7 @@ struct AlarmView: View { viewModel.hasNetworkError = true return } - + viewModel.checkNotificationPermission() viewModel.fetchNotifications() } @@ -69,17 +69,20 @@ extension AlarmView { }) .ignoresSafeArea() } - + /// 알림 리스트 뷰 private var notificationListView: some View { List { // 푸시 알림 off 배너 if viewModel.isNotiOff && viewModel.isNotiOffShown { pushNotiOffView + .listRowInsets(.init()) + .listRowSeparator(.hidden) + .listRowBackground(Color.clear) .padding(.top, 10) .padding(.bottom, 20) } - + ForEach(viewModel.notifications) { notification in NotificationItemView( notification: notification, @@ -87,7 +90,7 @@ extension AlarmView { handleNotificationTap(notification) } ) - .listRowInsets(EdgeInsets()) + .listRowInsets(.init()) .listRowSeparator(.hidden) .listRowBackground(Color.clear) .swipeActions(edge: .trailing, allowsFullSwipe: false) { @@ -111,7 +114,7 @@ extension AlarmView { .typography(.suit15R) .padding(15) } - + } /// 기기 푸쉬 알림이 off일 때 나오는 상단뷰