tvOS layout fixes

This commit is contained in:
Arkadiusz Fal
2022-11-10 22:51:30 +01:00
parent d779ec7215
commit 21b61982ad
6 changed files with 25 additions and 17 deletions

View File

@@ -25,12 +25,12 @@ struct PopularView: View {
.navigationTitle("Popular")
#endif
}
#if !os(tvOS)
.toolbar {
ToolbarItem(placement: .automatic) {
FavoriteButton(item: FavoriteItem(section: .popular))
}
}
#if !os(tvOS)
.background(
Button("Refresh") {
resource?.load()

View File

@@ -37,12 +37,13 @@ struct SubscriptionsView: View {
#endif
}
}
#if !os(tvOS)
.toolbar {
ToolbarItem(placement: .automatic) {
FavoriteButton(item: FavoriteItem(section: .subscriptions))
}
}
#if !os(tvOS)
.background(
Button("Refresh") {
loadResources(force: true)