Convert Manage Channel Notifications list to macOS-native helpers

This commit is contained in:
Arkadiusz Fal
2026-04-21 02:19:33 +02:00
parent 79459b8f2e
commit 07a1e0f81d

View File

@@ -165,14 +165,14 @@ struct ManageChannelNotificationsView: View {
private var subscriptionService: SubscriptionService? { appEnvironment?.subscriptionService } private var subscriptionService: SubscriptionService? { appEnvironment?.subscriptionService }
var body: some View { var body: some View {
List { Group {
if isLoading { if isLoading {
HStack { HStack {
Spacer() Spacer()
ProgressView() ProgressView()
Spacer() Spacer()
} }
.listRowBackground(Color.clear) .frame(maxHeight: .infinity)
} else if let errorMessage { } else if let errorMessage {
ContentUnavailableView { ContentUnavailableView {
Label( Label(
@@ -194,10 +194,14 @@ struct ManageChannelNotificationsView: View {
} }
.frame(maxWidth: .infinity, maxHeight: .infinity) .frame(maxWidth: .infinity, maxHeight: .infinity)
} else { } else {
ForEach(subscriptions, id: \.channelID) { subscription in SettingsFormContainer {
ChannelNotificationToggle(subscription: subscription) SettingsFormSection {
ForEach(subscriptions, id: \.channelID) { subscription in
ChannelNotificationToggle(subscription: subscription)
}
.id(refreshID)
}
} }
.id(refreshID)
} }
} }
.navigationTitle(String(localized: "settings.notifications.manageChannels.title")) .navigationTitle(String(localized: "settings.notifications.manageChannels.title"))