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

Conflict with SwiftUI: Renaming Classes to RImageRessource and RColorRessource #854

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jewelch
Copy link

@Jewelch Jewelch commented Sep 28, 2023

Problem:

Apple has introduced two new classes, ImageResource and ColorResource, in SwiftUI. These classes have the same names as our existing classes, ImageRessource and ColorRessource, which has led to a naming conflict.

Solution:

To avoid this conflict and ensure the smooth functioning of our package, I have renamed our classes as follows:

  • ImageRessource is now RImageRessource
  • ColorRessource is now RColorRessource

Why This Change is Necessary:

By renaming our classes, we prevent any ambiguity when developers use our package alongside SwiftUI. This change aligns with best practices to avoid naming conflicts and ensures that our package remains compatible with the latest iOS SDK.

Links to Apple Documentation:

Apple's ImageResource Documentation
Apple's ColorResource Documentation

Impact:

This change may require updates in the codebase where our package is used. Developers will need to update references to the old class names (ImageRessource and ColorRessource) to the new names (RImageRessource and RColorRessource) to ensure compatibility.

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

Successfully merging this pull request may close these issues.

None yet

1 participant