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