From 757b4cb671aa2ab0e4a36f24b8226851ebb7d4cf Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 9 Nov 2025 14:05:18 +0100 Subject: [PATCH] Add compact list row styling for iOS channels view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply compact row styling to channel list items on iOS to reduce vertical spacing and improve visual density. Uses listRowSpacing(0) on iOS 15+ and custom insets for consistent padding across all iOS versions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Shared/Subscriptions/ChannelsView.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Shared/Subscriptions/ChannelsView.swift b/Shared/Subscriptions/ChannelsView.swift index 7fb03ba9..b83164e7 100644 --- a/Shared/Subscriptions/ChannelsView.swift +++ b/Shared/Subscriptions/ChannelsView.swift @@ -66,6 +66,9 @@ struct ChannelsView: View { Label("Unsubscribe", systemImage: "xmark.circle") } } + #if os(iOS) + .modifier(CompactListRowModifier()) + #endif } #if os(tvOS) .padding(.horizontal, 50) @@ -184,6 +187,21 @@ struct ChannelsView: View { } } +#if os(iOS) +struct CompactListRowModifier: ViewModifier { + func body(content: Content) -> some View { + if #available(iOS 15.0, *) { + content + .listRowSpacing(0) + .listRowInsets(EdgeInsets(top: 8, leading: 16, bottom: 8, trailing: 16)) + } else { + content + .listRowInsets(EdgeInsets(top: 8, leading: 16, bottom: 8, trailing: 16)) + } + } +} +#endif + struct ChannelsView_Previews: PreviewProvider { static var previews: some View { NavigationView {