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

Make SwiftUI types the default and not UIKit types. #1090

Open
oliverfoggin opened this issue Nov 23, 2023 · 1 comment
Open

Make SwiftUI types the default and not UIKit types. #1090

oliverfoggin opened this issue Nov 23, 2023 · 1 comment

Comments

@oliverfoggin
Copy link

When you run swiftgen you get accessors... .color and .image. But by default they refer to UIColor and UIImage.

For SwiftUI.Color and SwiftUI.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

@oliverfoggin
Copy link
Author

oliverfoggin commented Nov 23, 2023

I updated the stencil. Also I changed the init from init(asset: ImageAsset) to init(_ asset: ImageAsset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant