@@ -27,14 +27,14 @@ public extension D2SKeys {
27
27
28
28
struct debug : DynamicEnvironmentKey {
29
29
#if DEBUG
30
- public static var defaultValue = true
30
+ public static let defaultValue = true
31
31
#else
32
- public static var defaultValue = false
32
+ public static let defaultValue = false
33
33
#endif
34
34
}
35
35
36
36
struct database : DynamicEnvironmentKey {
37
- public static var defaultValue : Database = D2SDummyDatabase ( )
37
+ public static let defaultValue : Database = D2SDummyDatabase ( )
38
38
}
39
39
40
40
struct firstTask : DynamicEnvironmentKey {
@@ -51,7 +51,7 @@ public extension D2SKeys {
51
51
struct object : DynamicEnvironmentKey {
52
52
// TBD: This one should really be an EnvironmentObject, but how
53
53
// would we do this? More in the keypath \.object.
54
- public static var defaultValue : OActiveRecord = . init( )
54
+ public static let defaultValue : OActiveRecord = . init( )
55
55
}
56
56
57
57
struct propertyKey : DynamicEnvironmentKey {
@@ -65,11 +65,11 @@ public extension D2SKeys {
65
65
// MARK: - Model
66
66
67
67
struct model : DynamicEnvironmentKey {
68
- public static var defaultValue : Model = D2SDefaultModel ( )
68
+ public static let defaultValue : Model = D2SDefaultModel ( )
69
69
}
70
70
71
71
struct entity : DynamicEnvironmentKey {
72
- public static var defaultValue : Entity = D2SDefaultEntity . shared
72
+ public static let defaultValue : Entity = D2SDefaultEntity . shared
73
73
}
74
74
75
75
/**
@@ -80,7 +80,7 @@ public extension D2SKeys {
80
80
* If that also fails, the default dummy attribute is returned.
81
81
*/
82
82
struct attribute : DynamicEnvironmentKey {
83
- public static var defaultValue : Attribute = D2SDefaultAttribute ( )
83
+ public static let defaultValue : Attribute = D2SDefaultAttribute ( )
84
84
}
85
85
86
86
/**
@@ -91,7 +91,7 @@ public extension D2SKeys {
91
91
* If that also fails, the default dummy relationship is returned.
92
92
*/
93
93
struct relationship : DynamicEnvironmentKey {
94
- public static var defaultValue : Relationship = D2SDefaultRelationship ( )
94
+ public static let defaultValue : Relationship = D2SDefaultRelationship ( )
95
95
}
96
96
97
97
// MARK: - Derived
0 commit comments