Revert "Drop iOS 14 and macOS 11 support"

This reverts commit dcef7f47ff.
This commit is contained in:
Arkadiusz Fal
2023-10-15 13:35:23 +02:00
parent 053b4a22b8
commit 94915b0496
45 changed files with 695 additions and 88 deletions

View File

@@ -40,7 +40,7 @@ struct ChannelVideosView: View {
}
var body: some View {
VStack {
let content = VStack {
#if os(tvOS)
VStack {
HStack(spacing: 24) {
@@ -181,12 +181,19 @@ struct ChannelVideosView: View {
.navigationTitle(navigationTitle)
#endif
#if os(tvOS)
.background(Color.background(scheme: colorScheme))
#endif
#if !os(iOS)
.focusScope(focusNamespace)
#endif
return Group {
if #available(macOS 12.0, *) {
content
#if os(tvOS)
.background(Color.background(scheme: colorScheme))
#endif
#if !os(iOS)
.focusScope(focusNamespace)
#endif
} else {
content
}
}
}
var verticalCellsEdgesIgnoringSafeArea: Edge.Set {