KEMBAR78
Remove iOS Compat ColorExtension ToUIColor overlap by jfversluis · Pull Request #5854 · dotnet/maui · GitHub
Skip to content

Conversation

@jfversluis
Copy link
Member

@jfversluis jfversluis commented Apr 6, 2022

Description of Change

Removes all the Microsoft.Maui.Controls.Compatibility.Platform.iOS.ToUIColor() overloads since it was overlapping with Microsoft.Maui.Platform.ColorExtensions.ToPlatform() and therefore causing confusion

API Changes

❌ Deprecated (and implementation now uses ToPlatform)

  • public static UIColor ToUIColor(this Color color)
  • public static UIColor ToUIColor(this Color color, Color defaultColor)
  • public static UIColor ToUIColor(this Color color, UIColor defaultColor)

Issues Fixed

Fixes #4601

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

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

   (CoreCompile target) -> 
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(51,54): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(52,57): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(53,62): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(57,62): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(62,62): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(67,63): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\CustomRenderers\_12372CustomRenderer.cs(73,62): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\SearchbarEffect.cs(24,46): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]
         D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\SearchbarEffect.cs(34,47): error CS1061: 'Color' does not contain a definition for 'ToPlatform' and no accessible extension method 'ToPlatform' accepting a first argument of type 'Color' could be found (are you missing a using directive or an assembly reference?) [D:\a\_work\1\s\src\Compatibility\ControlGallery\src\iOS\Compatibility.ControlGallery.iOS.csproj]

@rmarinho rmarinho merged commit fc0970b into main May 2, 2022
@rmarinho rmarinho deleted the fix-4601 branch May 2, 2022 09:22
@samhouts samhouts added the migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert label Aug 28, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2023
@samhouts samhouts added the fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete overlapping ColorExtension properties from Microsoft.Maui.Controls.Compatibility.Platform.iOS

5 participants