initial commit
This commit is contained in:
parent
55528ce8e8
commit
e49311c1aa
|
@ -71,4 +71,5 @@ public class ClockLooks : ObservableObject {
|
||||||
|
|
||||||
@Published public var impactFeedbackOn: Bool = false
|
@Published public var impactFeedbackOn: Bool = false
|
||||||
|
|
||||||
|
public init() {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue