Fix playlists view on iOS

This commit is contained in:
Arkadiusz Fal 2023-05-22 15:33:13 +02:00
parent 8f48da93d8
commit 16fb7087e3

View File

@ -364,6 +364,7 @@ struct PlaylistsView: View {
var header: some View {
HStack {
#if os(tvOS)
if model.isEmpty {
Text("No Playlists")
.foregroundColor(.secondary)
@ -386,6 +387,9 @@ struct PlaylistsView: View {
ListingStyleButtons(listingStyle: $playlistListingStyle)
HideShortsButtons(hide: $hideShorts)
#else
Spacer()
#endif
if let account = accounts.current, showCacheStatus {
CacheStatusHeader(
@ -394,6 +398,7 @@ struct PlaylistsView: View {
)
}
#if os(tvOS)
Button {
model.load(force: true)
loadResource()
@ -401,12 +406,13 @@ struct PlaylistsView: View {
Label("Refresh", systemImage: "arrow.clockwise")
.labelStyle(.iconOnly)
}
#endif
}
.labelStyle(.iconOnly)
.font(.caption)
.imageScale(.small)
.padding(.leading, 30)
#if os(tvOS)
.padding(.leading, 30)
.padding(.bottom, 15)
.padding(.trailing, 30)
#endif