Make media browser file list feel native on macOS

Drop the iOS-grouped rounded card in MediaBrowserView's section
container for top/bottom dividers on macOS, force .buttonStyle(.plain)
on directory NavigationLinks to avoid default link tinting, and
shrink MediaFileRow's icon frame on macOS. iOS and tvOS unchanged.
This commit is contained in:
Arkadiusz Fal
2026-04-20 21:12:53 +02:00
parent d8f10e984a
commit bb9ec2fc2a
2 changed files with 23 additions and 0 deletions

View File

@@ -56,11 +56,19 @@ struct MediaFileRow: View {
}
private var iconView: some View {
#if os(macOS)
Image(systemName: file.systemImage)
.font(.title3)
.foregroundStyle(iconColor)
.frame(width: 28, height: 28)
.contentShape(Rectangle())
#else
Image(systemName: file.systemImage)
.font(.title2)
.foregroundStyle(iconColor)
.frame(width: 44, height: 44)
.contentShape(Rectangle())
#endif
}
private var textView: some View {