Skip to content

Commit

Permalink
Added public access level to Swift class and enum properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycpadilla committed Aug 23, 2019
1 parent e660cb8 commit ceb6f24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/common/templates/ios-swift/class.swift.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
import UIKit

public class <%= this.className %> {
<%= _.map(props, function(prop) { return 'static let ' + prop.name + ' = ' + prop.value; }).join('\n ') %>
<%= _.map(props, function(prop) { return 'public static let ' + prop.name + ' = ' + prop.value; }).join('\n ') %>
}
2 changes: 1 addition & 1 deletion lib/common/templates/ios-swift/enum.swift.template
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
import UIKit

public enum <%= this.className %> {
<%= _.map(props, function(prop) { return 'static let ' + prop.name + ' = ' + prop.value; }).join('\n ') %>
<%= _.map(props, function(prop) { return 'public static let ' + prop.name + ' = ' + prop.value; }).join('\n ') %>
}

0 comments on commit ceb6f24

Please sign in to comment.