Compare commits

..

No commits in common. "b006293896a9af1f7388b5ffa39227de5f53944b" and "6d19c4b81d85c28e7b2fba01d86fdbe922089bea" have entirely different histories.

6 changed files with 3 additions and 14 deletions

View File

@ -1,10 +1,6 @@
{
"colors" : [
{
"color" : {
"platform" : "universal",
"reference" : "systemMintColor"
},
"idiom" : "universal"
}
],

View File

@ -54,9 +54,8 @@ struct KeyData: Codable {
entries.removeAll(where: { $0.id == id })
}
mutating func reset() {
mutating func clearEntries() {
entries.removeAll()
folders.removeAll()
}
mutating func addFolder() {

View File

@ -66,8 +66,8 @@ class KeyStore: ObservableObject {
data.removeKey(entryID: id)
}
func reset() {
data.reset()
func clearEntries() {
data.clearEntries()
}
func addFolder() {

View File

@ -38,7 +38,6 @@ struct AppView: View {
isPresentingPreferences = true
} label: {
Label("Preferences", systemImage: "gear")
.tint(.accentColor)
}
}
@ -71,7 +70,6 @@ struct AppView: View {
}
} label: {
Label("Add Key", systemImage: "plus.circle")
.tint(.accentColor)
}
}
}

View File

@ -94,14 +94,12 @@ struct EditKeyForm: View {
Button("Cancel") {
dismiss(.cancel)
}
.tint(.accentColor)
}
}
ToolbarItem(placement: .navigationBarTrailing) {
Button("Save") {
dismiss(.save(editedKey.toTOTPKey()!))
}
.tint(.accentColor)
.disabled(!isValid)
}
}

View File

@ -76,7 +76,6 @@ struct QRCodeView: View {
Button("Done") {
dismiss()
}
.tint(.accentColor)
}
}
.background {
@ -106,7 +105,6 @@ struct QRCodeView: View {
Label("Save", systemImage: "square.and.arrow.down")
}
}
.tint(.accentColor)
}
// fix the size so that the HStack doesn't grow beyond with width of the image
.fixedSize()