We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SwiftUI
UIKit
When you run swiftgen you get accessors... .color and .image. But by default they refer to UIColor and UIImage.
.color
.image
UIColor
UIImage
For SwiftUI.Color and SwiftUI.Image you have to use .swiftUIColor and .swiftUIImage.
SwiftUI.Color
SwiftUI.Image
.swiftUIColor
.swiftUIImage
Is it possible in the config to swap these around? Or should I just edit the template?
Thanks
The text was updated successfully, but these errors were encountered:
I updated the stencil. Also I changed the init from init(asset: ImageAsset) to init(_ asset: ImageAsset)
init(asset: ImageAsset)
init(_ asset: ImageAsset)
Sorry, something went wrong.
No branches or pull requests
When you run swiftgen you get accessors...
.color
and.image
. But by default they refer toUIColor
andUIImage
.For
SwiftUI.Color
andSwiftUI.Image
you have to use.swiftUIColor
and.swiftUIImage
.Is it possible in the config to swap these around? Or should I just edit the template?
Thanks
The text was updated successfully, but these errors were encountered: