Fix issues on new systems

This commit is contained in:
世界
2025-09-23 21:45:01 +08:00
parent a696864985
commit 286f6fd794
8 changed files with 64 additions and 7 deletions
@@ -137,14 +137,20 @@ public struct ProfileView: View {
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
if editMode == .inactive {
Button("Edit") {
Button(action: {
editMode = .active
}) {
Image(systemName: "square.and.pencil")
}
.tint(.accentColor)
.disabled(profileList.isEmpty)
} else {
Button("Done") {
Button(action: {
editMode = .inactive
}) {
Image(systemName: "checkmark.square.fill")
}
.tint(.accentColor)
}
}
}