Improve saving, show start time
This commit is contained in:
@ -7,6 +7,7 @@ enum SaveState {
|
||||
case isSaved
|
||||
case needsSave
|
||||
case failedToSave
|
||||
case isSaving
|
||||
|
||||
var symbol: SFSymbol {
|
||||
switch self {
|
||||
@ -20,6 +21,8 @@ enum SaveState {
|
||||
return .hourglassCircleFill
|
||||
case .failedToSave:
|
||||
return .exclamationmarkTriangleFill
|
||||
case .isSaving:
|
||||
return .hourglassCircleFill
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,7 +30,7 @@ enum SaveState {
|
||||
switch self {
|
||||
case .storageNotInitialized:
|
||||
return .red
|
||||
case .isSaved:
|
||||
case .isSaved, .isSaving:
|
||||
return .green
|
||||
case .needsSave:
|
||||
return .yellow
|
||||
|
Reference in New Issue
Block a user