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

disable Font typealias? #1092

Open
JuliusNmn opened this issue Dec 17, 2023 · 1 comment
Open

disable Font typealias? #1092

JuliusNmn opened this issue Dec 17, 2023 · 1 comment

Comments

@JuliusNmn
Copy link

I get the following error message if my project defines a public Font property: Property cannot be declared public because its type uses an internal type

For example:

class MyClass {
    public let font: Font
}

Is there some way to disable the Font typealias to 'FontConvertible.Font` ? I see it's deprecated, but I want to disable it now.

btw, SwiftGen is extremely useful! Thanks for maintaining!

@djbe
Copy link
Member

djbe commented Mar 15, 2024

Hi, Thank you for your feedback!

We will remove the aliases in the next major version of SwiftGen, but A) no idea when we'll release that, and B) not helpful to you now.

Unfortunately the only solution that'll work for you now, is creating a custom template. We have some documentation that explains the steps involved, it's very easy! In that custom template, you'd just need to remove the line of the typealias.

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

No branches or pull requests

2 participants