MacOS support using Mac Catalyst

This commit is contained in:
Vicnet
2023-11-10 15:10:32 +01:00
parent 1d3b936e99
commit 3d3165c6b9
4 changed files with 14 additions and 5 deletions

View File

@@ -367,13 +367,17 @@ 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)
}