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

Remove unnecessary retroactive attribute #869

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

yimajo
Copy link
Contributor

@yimajo yimajo commented Aug 29, 2024

Issue

Overview (Required)

  • The @retroactive attribute was necessary in Xcode 16, so it was applied using a macro branching process. However, the proposal SE-0364 describes a method that does not require macro branching and switches to that fully qualified method.
  • Additionally, the ColorAsset and FontConvertible types did not need the @retroactive attribute, so the attribute and macros were removed.
    • These types were created by SwiftGen in the Theme module, and the extensions were declared in the same Theme module.
      • The @retroactive attribute is necessary when changes are made from external modules, so it was not meaningful in this context.

Links

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before After

Movie (Optional)

Before After

It was not needed because the type and the extension are declared within the same module.
Copy link
Contributor

@shin-usu shin-usu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.
LGTM🙏

@shin-usu shin-usu merged commit 5ea41be into DroidKaigi:main Aug 29, 2024
4 checks passed
@yimajo yimajo deleted the remove_unnecessary_retroactive branch August 30, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants