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

Prevent color name clash between swiftui and trikot.viewmodel #199

Conversation

marclefrancois
Copy link
Member

Description

In the case where a trikot based project is currently migrating from trikot.viewmodels to trikot.viewmodel-declarative there is a name clash in VMDHtmlText.swift between SwiftUI.Color and TRIKOT_FRAMEWORK_NAME.Color

I also improved the look and feel of the sample in dark mode while at it.

Before After
Screenshot 2023-10-25 at 6 19 43 PM Screenshot 2023-10-25 at 6 21 26 PM

Motivation and Context

To fix a blocking problem for projects that use both versions of the viewModel

How Has This Been Tested?

Ran the sample app

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

This happens in projects currently migrating from Trikot.viewmodels when since the Color class ends up in the published framework
@marclefrancois marclefrancois merged commit a505982 into master Oct 26, 2023
1 check passed
@marclefrancois marclefrancois deleted the fix/prevent-color-name-clash-between-swiftui-and-trikot.viewmodel branch October 26, 2023 01:14
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.

2 participants