-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add attribute for Equatable protocol #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect. Tests look great. Thanks so much for your work here. Great stuff.
Can you just update your PR body with an example of the feature.
Here's an example: #21
You can see more examples in the releases page https://github.com/chinedufn/swift-bridge/releases
Then I can merge this.
Oh, and we need to add this to the attributes documentation here swift-bridge/book/src/bridge-module/opaque-types/README.md Lines 136 to 170 in 607e305
You can put Equatable below the |
I did this. Please check my PR body! |
Sure. I'll address this tomorrow! |
Hi, @chinedufn! I addressed your review. |
Thanks! |
Referenced this PR in the guide for #269 Thanks! |
This PR introduces the #[swift_bridge(Equatable)] attribute, which is used to generate a type that conforms to
Equatable
protocol.Somthing like: