Fix profile picker

This commit is contained in:
世界
2025-12-03 19:57:15 +08:00
parent 2e58f37fe1
commit 215677131d
2 changed files with 391 additions and 71 deletions
@@ -246,7 +246,13 @@ import SwiftUI
#endif
ToolbarItemGroup(placement: .topBarTrailing) {
if #available(iOS 16.0, tvOS 17.0, *) {
cardManagementButton
#if os(iOS)
if !useLegacyTabView || coordinator.selection == .overview {
cardManagementButton
}
#else
cardManagementButton
#endif
}
#if os(tvOS)
StartStopButton()
@@ -288,10 +294,14 @@ import SwiftUI
@available(iOS 16.0, *) @ViewBuilder private var cardManagementButton: some View {
#if os(iOS)
Button {
showCardManagement = true
Menu {
Button {
showCardManagement = true
} label: {
Label("Dashboard Items", systemImage: "square.grid.2x2")
}
} label: {
Label("Dashboard Items", systemImage: "square.grid.2x2")
Label("Others", systemImage: "line.3.horizontal.circle")
}
#elseif os(tvOS)
Button {