Code cleanup
This commit is contained in:
@@ -7,9 +7,8 @@
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
#if !os(macOS)
|
||||
import UIKit
|
||||
#endif
|
||||
|
||||
|
||||
@MainActor class MainViewModel: ObservableObject {
|
||||
@Published var categories: [Category] = []
|
||||
|
||||
@@ -367,17 +367,13 @@ fileprivate struct DurationPicker: View {
|
||||
Text(title)
|
||||
Spacer()
|
||||
TextField("00", text: $duration.hourComponent)
|
||||
#if !os(macOS)
|
||||
.keyboardType(.decimalPad)
|
||||
#endif
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.multilineTextAlignment(.trailing)
|
||||
.frame(maxWidth: 40)
|
||||
Text(":")
|
||||
TextField("00", text: $duration.minuteComponent)
|
||||
#if !os(macOS)
|
||||
.keyboardType(.decimalPad)
|
||||
#endif
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.frame(maxWidth: 40)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user