Skip to content

Commit 6db379e

Browse files
committed
make enums public
1 parent 3f84365 commit 6db379e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/machine.swift.motemplate

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ import CoreData
66
<$if hasCustomBaseCaseImport$>import <$baseClassImport$><$endif$>
77

88
<$if noninheritedAttributes.@count > 0$>
9-
enum <$managedObjectClassName$>Attributes: String {<$foreach Attribute noninheritedAttributes do$>
9+
public enum <$managedObjectClassName$>Attributes: String {<$foreach Attribute noninheritedAttributes do$>
1010
case <$Attribute.name$> = "<$Attribute.name$>"<$endforeach do$>
1111
}
1212
<$endif$>
1313

1414
<$if noninheritedRelationships.@count > 0$>
15-
enum <$managedObjectClassName$>Relationships: String {<$foreach Relationship noninheritedRelationships do$>
15+
public enum <$managedObjectClassName$>Relationships: String {<$foreach Relationship noninheritedRelationships do$>
1616
case <$Relationship.name$> = "<$Relationship.name$>"<$endforeach do$>
1717
}
1818
<$endif$>
1919

2020
<$if noninheritedFetchedProperties.@count > 0$>
21-
enum <$managedObjectClassName$>FetchedProperties: String {<$foreach FetchedProperty noninheritedFetchedProperties do$>
21+
public enum <$managedObjectClassName$>FetchedProperties: String {<$foreach FetchedProperty noninheritedFetchedProperties do$>
2222
case <$FetchedProperty.name$> = "<$FetchedProperty.name$>"<$endforeach do$>
2323
}
2424
<$endif$>
2525

2626
<$if hasUserInfoKeys$>
27-
enum <$managedObjectClassName$>UserInfo: String {<$foreach UserInfo userInfoKeyValues do$>
27+
public enum <$managedObjectClassName$>UserInfo: String {<$foreach UserInfo userInfoKeyValues do$>
2828
case <$UserInfo.key$> = "<$UserInfo.key$>"<$endforeach do$>
2929
}
3030
<$endif$>

0 commit comments

Comments
 (0)