I am integrating the figma exported color palette into a swift package. Currently, there is no way to support this as the generated extensions result in an runtime error due to how the bundle is accessed. This code fails when used in a Swift package:
let bundleProvider = """
private class BundleProvider {
static let bundle = Bundle(for: BundleProvider.self)
}
"""
I am integrating the figma exported color palette into a swift package. Currently, there is no way to support this as the generated extensions result in an runtime error due to how the bundle is accessed. This code fails when used in a Swift package:
Per the Apple docs we want to do this:
This PR adds a flag for this use case and modifies the bundle provider as per the note. Tested and working with a SwiftPM repo.