@@ -27,7 +27,7 @@ enum <$managedObjectClassName$>UserInfo: String {<$foreach UserInfo userInfoKeyV
27
27
}
28
28
<$endif$>
29
29
30
- @objc
30
+ @objc public
31
31
class _<$managedObjectClassName$>: <$customSuperentity$> {
32
32
33
33
// MARK: - Class methods
@@ -56,18 +56,18 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {
56
56
<$if Attribute.hasDefinedAttributeType$>
57
57
<$if Attribute.hasScalarAttributeType$>
58
58
<$if Attribute.isReadonly$>
59
- @NSManaged
59
+ @NSManaged public
60
60
let <$Attribute.name$>: NSNumber?
61
61
<$else$>
62
- @NSManaged
62
+ @NSManaged public
63
63
var <$Attribute.name$>: NSNumber?
64
64
<$endif$>
65
65
<$else$>
66
66
<$if Attribute.isReadonly$>
67
- @NSManaged
67
+ @NSManaged public
68
68
let <$Attribute.name$>: <$Attribute.objectAttributeType$><$if Attribute.isOptional$>?<$endif$>
69
69
<$else$>
70
- @NSManaged
70
+ @NSManaged public
71
71
var <$Attribute.name$>: <$Attribute.objectAttributeType$><$if Attribute.isOptional$>?<$endif$>
72
72
<$endif$>
73
73
<$endif$>
@@ -78,11 +78,11 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {
78
78
// MARK: - Relationships
79
79
<$foreach Relationship noninheritedRelationships do$>
80
80
<$if Relationship.isToMany$>
81
- @NSManaged
81
+ @NSManaged public
82
82
var <$Relationship.name$>: <$Relationship.immutableCollectionClassName$>
83
83
84
84
<$else$>
85
- @NSManaged
85
+ @NSManaged public
86
86
var <$Relationship.name$>: <$Relationship.destinationEntity.managedObjectClassName$><$if Relationship.isOptional$>?<$endif$>
87
87
88
88
// func validate<$Relationship.name.initialCapitalString$>(value: AutoreleasingUnsafePointer<AnyObject>, error: NSErrorPointer) {}
@@ -154,7 +154,7 @@ class _<$managedObjectClassName$>: <$customSuperentity$> {
154
154
<$endforeach do$>
155
155
156
156
<$foreach FetchedProperty noninheritedFetchedProperties do$>
157
- @NSManaged
157
+ @NSManaged public
158
158
let <$FetchedProperty.name$>: [<$FetchedProperty.entity.managedObjectClassName$>]
159
159
<$endforeach do$>
160
160
}
@@ -187,4 +187,4 @@ extension _<$managedObjectClassName$> {
187
187
}
188
188
189
189
}
190
- <$endif$><$endforeach do$>
190
+ <$endif$><$endforeach do$>
0 commit comments