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

[Swift] Error enum case starts with uppercase letter #2262

Open
szymon-nord opened this issue Oct 9, 2024 · 1 comment
Open

[Swift] Error enum case starts with uppercase letter #2262

szymon-nord opened this issue Oct 9, 2024 · 1 comment

Comments

@szymon-nord
Copy link

Hey 👋
We noticed a discrepancy between regular enums and enums that conform to Error type in Swift.
The latter ones are generated with uppercase first letter which do not align with lowerCamelCase Swift conventions (source).

Enum template consists enum_variant_swift_quoted for particular case, but error template has class_name.

Is this something which can be addressed somehow?

@mhammond
Copy link
Member

b/w compat will be the issue here, but we could probably have a flag in uniffi.toml to change this.

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

2 participants