diff --git a/templates/machine.swift.motemplate b/templates/machine.swift.motemplate index 00d474dc..923c1a7d 100644 --- a/templates/machine.swift.motemplate +++ b/templates/machine.swift.motemplate @@ -6,25 +6,25 @@ import CoreData <$if hasCustomBaseCaseImport$>import <$baseClassImport$><$endif$> <$if noninheritedAttributes.@count > 0$> -enum <$managedObjectClassName$>Attributes: String {<$foreach Attribute noninheritedAttributes do$> +public enum <$managedObjectClassName$>Attributes: String {<$foreach Attribute noninheritedAttributes do$> case <$Attribute.name$> = "<$Attribute.name$>"<$endforeach do$> } <$endif$> <$if noninheritedRelationships.@count > 0$> -enum <$managedObjectClassName$>Relationships: String {<$foreach Relationship noninheritedRelationships do$> +public enum <$managedObjectClassName$>Relationships: String {<$foreach Relationship noninheritedRelationships do$> case <$Relationship.name$> = "<$Relationship.name$>"<$endforeach do$> } <$endif$> <$if noninheritedFetchedProperties.@count > 0$> -enum <$managedObjectClassName$>FetchedProperties: String {<$foreach FetchedProperty noninheritedFetchedProperties do$> +public enum <$managedObjectClassName$>FetchedProperties: String {<$foreach FetchedProperty noninheritedFetchedProperties do$> case <$FetchedProperty.name$> = "<$FetchedProperty.name$>"<$endforeach do$> } <$endif$> <$if hasUserInfoKeys$> -enum <$managedObjectClassName$>UserInfo: String {<$foreach UserInfo userInfoKeyValues do$> +public enum <$managedObjectClassName$>UserInfo: String {<$foreach UserInfo userInfoKeyValues do$> case <$UserInfo.key$> = "<$UserInfo.key$>"<$endforeach do$> } <$endif$>