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

[REQ] [Swift5] Improve Objective-C interoperability by using @objcMembers instead of @objc at class level #13175

Open
tsanidas opened this issue Aug 12, 2022 · 3 comments

Comments

@tsanidas
Copy link
Contributor

Describe the issue

When using the objcCompatible option, classes are generated with @objc at the class level. While using these classes from Objective-C, you will receive a compiler error when trying to access any property:
Property 'xyz' not found on object of type 'GeneratedSwiftClass *'

Describe the solution you'd like

I'd like to use @objcMembers instead of @objc in the mustache template file. I can send in a PR for this if we can get consensus on this change.

@wing328
Copy link
Member

wing328 commented Aug 14, 2022

@tsanidas thanks for the suggestion.

cc @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11)

@4brunu
Copy link
Contributor

4brunu commented Aug 31, 2022

@tsanidas looks good to me 👍

@tsanidas
Copy link
Contributor Author

Hi all. I've submitted a PR for this. Please see: #15188

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

3 participants