Recipe edit UI polish

This commit is contained in:
VincentMeilinger
2024-03-05 08:39:06 +01:00
parent 597477544d
commit b5dbaad9aa
23 changed files with 337 additions and 341 deletions

View File

@@ -137,4 +137,10 @@ class DurationComponents: ObservableObject {
}
}
static func + (lhs: DurationComponents, rhs: DurationComponents) -> DurationComponents {
let totalSeconds = lhs.toSeconds() + rhs.toSeconds()
let result = DurationComponents()
result.fromSeconds(Int(totalSeconds))
return result
}
}