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

@@ -167,10 +167,6 @@ struct TrendingView: View {
}
}
#if os(iOS)
Spacer()
#endif
HStack {
Text("Country")
.foregroundColor(.secondary)
@@ -178,13 +174,11 @@ struct TrendingView: View {
countryButton
}
#if os(tvOS)
if let favoriteItem {
FavoriteButton(item: favoriteItem)
.id(favoriteItem.id)
.labelStyle(.iconOnly)
}
#endif
if let favoriteItem {
FavoriteButton(item: favoriteItem)
.id(favoriteItem.id)
.labelStyle(.iconOnly)
}
}
}
#endif