Fix dashboard buttons on tvOS
This commit is contained in:
@@ -35,7 +35,7 @@ public struct NavigationButtonsView: View {
|
||||
|
||||
#if os(tvOS)
|
||||
private var tvOSBody: some View {
|
||||
HStack {
|
||||
Group {
|
||||
if showConnectionsButton {
|
||||
Button {
|
||||
onConnectionsTap()
|
||||
|
||||
@@ -243,7 +243,7 @@ import SwiftUI
|
||||
|
||||
@ToolbarContentBuilder private var toolbar: some ToolbarContent {
|
||||
#if os(tvOS)
|
||||
ToolbarItem(placement: .topBarLeading) {
|
||||
ToolbarItemGroup(placement: .topBarLeading) {
|
||||
navigationButtons
|
||||
}
|
||||
#endif
|
||||
@@ -312,7 +312,7 @@ import SwiftUI
|
||||
Button {
|
||||
showCardManagement = true
|
||||
} label: {
|
||||
Image(systemName: "line.3.horizontal.circle")
|
||||
Image(systemName: "square.grid.2x2")
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ import SwiftUI
|
||||
}
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .topBarTrailing) {
|
||||
TVToolbarButton(title: "Reset") {
|
||||
TVToolbarButton(title: String(localized: "Reset")) {
|
||||
Task {
|
||||
await configuration.resetToDefault()
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ struct ProfilePickerSheet: View {
|
||||
.environment(\.editMode, $editMode)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
TVToolbarButton(title: editMode.isEditing ? "Done" : "Edit") {
|
||||
TVToolbarButton(title: editMode.isEditing ? String(localized: "Done"): String(localized: "Edit")) {
|
||||
withAnimation {
|
||||
if editMode.isEditing {
|
||||
movingProfileID = nil
|
||||
|
||||
Reference in New Issue
Block a user