Finish add support for tvOS

This commit is contained in:
世界
2023-07-29 19:40:38 +08:00
parent bb0385f53c
commit 27ffee06e2
28 changed files with 104 additions and 26 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 54 KiB

@@ -6,6 +6,7 @@
"scale" : "1x"
},
{
"filename" : "tv - App Icon Small - Back - 400 x 240 pt@2x.png",
"idiom" : "tv",
"scale" : "2x"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 8.1 KiB

@@ -6,6 +6,7 @@
"scale" : "1x"
},
{
"filename" : "tv - App Icon Small - Front - 400 x 240 pt@2x.png",
"idiom" : "tv",
"scale" : "2x"
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 17 KiB

@@ -1,10 +1,12 @@
{
"images" : [
{
"filename" : "tv - Top Shelf - Wide - 2320 x 720 pt.png",
"idiom" : "tv",
"scale" : "1x"
},
{
"filename" : "tv - Top Shelf - Wide - 2320 x 720 pt@2x.png",
"idiom" : "tv",
"scale" : "2x"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 725 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

@@ -1,10 +1,12 @@
{
"images" : [
{
"filename" : "1920 x 720 pt.png",
"idiom" : "tv",
"scale" : "1x"
},
{
"filename" : "1920 x 720 pt@2x.png",
"idiom" : "tv",
"scale" : "2x"
}
+2 -4
View File
@@ -25,11 +25,10 @@ struct ContentView: View {
ForEach(NavigationPage.allCases.filter { it in
it.visible(extensionProfile)
}, id: \.self) { page in
NavigationView {
NavigationStackCompat {
page.contentView
.focusSection()
}
.navigationViewStyle(.stack)
.tag(page)
.tabItem { page.label }
}
@@ -49,11 +48,10 @@ struct ContentView: View {
ForEach(NavigationPage.allCases.filter { it in
it.visible(nil)
}, id: \.self) { page in
NavigationView {
NavigationStackCompat {
page.contentView
.focusSection()
}
.navigationViewStyle(.stack)
.tag(page)
.tabItem { page.label }
}