Skip to content

[iOS] Update LinearGradientInfo to use SwiftUI Color#2137

Merged
mischreiber merged 3 commits intomicrosoft:mainfrom
mischreiber:LinearGradientInfo-SwiftUI
Mar 5, 2025
Merged

[iOS] Update LinearGradientInfo to use SwiftUI Color#2137
mischreiber merged 3 commits intomicrosoft:mainfrom
mischreiber:LinearGradientInfo-SwiftUI

Conversation

@mischreiber
Copy link
Copy Markdown
Collaborator

@mischreiber mischreiber commented Mar 5, 2025

Platforms Impacted

  • iOS
  • visionOS
  • macOS

Description of changes

Updating LinearGradientInfo to use SwiftUI Color instead of UIColor to make it available cross-platform.

Verification

Only used in Notification -- verified both UIKit and SwiftUI in both light and dark.

Visual Verification
Dark Light
SwiftUI_dark SwiftUI_light
UIKit_dark UIKit_light

Pull request checklist

This PR has considered:

  • Light and Dark appearances
  • iOS supported versions (all major versions greater than or equal current target deployment version)
  • VoiceOver and Keyboard Accessibility
  • Internationalization and Right to Left layouts
  • Different resolutions (1x, 2x, 3x)
  • Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
  • iPad Pointer interaction
  • SwiftUI consumption (validation or new demo scenarios needed)
  • Objective-C exposure (provide it only if needed)
Microsoft Reviewers: Open in CodeFlow

@mischreiber mischreiber added the API break This PR introduces a breaking API change label Mar 5, 2025
@mischreiber mischreiber requested a review from a team as a code owner March 5, 2025 01:08
@mischreiber mischreiber enabled auto-merge (squash) March 5, 2025 18:08
@mischreiber mischreiber merged commit f1d9fa4 into microsoft:main Mar 5, 2025
7 checks passed
@mischreiber mischreiber deleted the LinearGradientInfo-SwiftUI branch March 5, 2025 22:27
@joannaquu joannaquu mentioned this pull request Apr 4, 2025
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API break This PR introduces a breaking API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants