Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(format): issue #295 #316

Merged
merged 2 commits into from
Aug 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __tests__/formats/__snapshots__/all.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ exports[`formats all should match ios-swift/class.swift snapshot 1`] = `
import UIKit

public class {
static let color_red = #FF0000
public static let color_red = #FF0000
}
"
`;
Expand All @@ -381,7 +381,7 @@ exports[`formats all should match ios-swift/enum.swift snapshot 1`] = `
import UIKit

public enum {
static let color_red = #FF0000
public static let color_red = #FF0000
}
"
`;
Expand Down
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 ') %>
}