initial commit

This commit is contained in:
workingdog 2020-02-05 16:36:28 +09:00
parent 55528ce8e8
commit e49311c1aa
2 changed files with 3 additions and 1 deletions

View File

@ -71,4 +71,5 @@ public class ClockLooks : ObservableObject {
@Published public var impactFeedbackOn: Bool = false @Published public var impactFeedbackOn: Bool = false
public init() {}
} }

View File

@ -9,6 +9,7 @@
import SwiftUI import SwiftUI
enum HandType { enum HandType {
case hour case hour
case minute case minute
@ -28,7 +29,7 @@ public struct ClockPickerView : View {
let periodTypes = ["AM", "PM"] let periodTypes = ["AM", "PM"]
let formatter = DateFormatter() let formatter = DateFormatter()
init(date: Binding<Date>, options: ClockLooks = ClockLooks()) { public init(date: Binding<Date>, options: ClockLooks = ClockLooks()) {
self._clockDate = date self._clockDate = date
self.options = options self.options = options
// to control the AM:PM picker colors // to control the AM:PM picker colors