Minor tvOS fixes
This commit is contained in:
@@ -132,7 +132,7 @@ public struct GroupView: View {
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
return standardCount < 2 ? 2 : standardCount
|
return standardCount < 2 ? 2 : standardCount
|
||||||
#elseif os(tvOS)
|
#elseif os(tvOS)
|
||||||
return Int(Int(geometryWidth) / 400)
|
return 4
|
||||||
#else
|
#else
|
||||||
return standardCount < 1 ? 1 : standardCount
|
return standardCount < 1 ? 1 : standardCount
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ struct MainView: View {
|
|||||||
ForEach(NavigationPage.allCases, id: \.self) { page in
|
ForEach(NavigationPage.allCases, id: \.self) { page in
|
||||||
NavigationStackCompat {
|
NavigationStackCompat {
|
||||||
page.contentView
|
page.contentView
|
||||||
.navigationTitle(page.title)
|
|
||||||
.focusSection()
|
.focusSection()
|
||||||
}
|
}
|
||||||
.tag(page)
|
.tag(page)
|
||||||
|
|||||||
Reference in New Issue
Block a user