Skip to content

Commit

Permalink
Fix Color.init(_:bundle:) signature when assetsInSwiftPackage equals …
Browse files Browse the repository at this point in the history
…TRUE (#153)
  • Loading branch information
remenkoff authored Feb 25, 2022
1 parent 834e1bc commit 505fe02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ private class BundleProvider {

{% endif %}
public extension Color {{ "{" }}{% for color in colors %}
static var {{ color.name }}: Color { Color({% if useNamespace %}"{{ color.originalName }}"{% else %}#function{% endif %}{% if not assetsInMainBundle %}, in: BundleProvider.bundle{% endif %}) }{% endfor %}
static var {{ color.name }}: Color { Color({% if useNamespace %}"{{ color.originalName }}"{% else %}#function{% endif %}{% if not assetsInMainBundle %}, bundle: BundleProvider.bundle{% endif %}) }{% endfor %}
}
4 changes: 2 additions & 2 deletions Tests/XcodeExportTests/XcodeColorExporterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ final class XcodeColorExporterTests: XCTestCase {
}
public extension Color {
static var colorPair1: Color { Color(#function, in: BundleProvider.bundle) }
static var colorPair2: Color { Color(#function, in: BundleProvider.bundle) }
static var colorPair1: Color { Color(#function, bundle: BundleProvider.bundle) }
static var colorPair2: Color { Color(#function, bundle: BundleProvider.bundle) }
}
""")
Expand Down

0 comments on commit 505fe02

Please sign in to comment.