[#1370] Add oudsTintColor view modifier API#1372
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add tint color API to library
Add Mar 27, 2026
oudsTintColor view modifier API
oudsTintColor view modifier APIoudsTintColor view modifier API
oudsTintColor view modifier APIoudsTintColor view modifier API
Agent-Logs-Url: https://github.com/Orange-OpenSource/ouds-ios/sessions/b969081b-7063-431b-a42d-541b316a5d88 Co-authored-by: pylapp <7559007+pylapp@users.noreply.github.com>
Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
Signed-off-by: Ludovic PINEL <ludovic.pinel@orange.com>
2ba6413 to
3edd4d4
Compare
ludovic35
approved these changes
Mar 30, 2026
pylapp
added a commit
that referenced
this pull request
Mar 31, 2026
Closes #1370 Assisted-by: Claude Sonnet 4.6 (GitHub Copilot) Reviewed-by: Ludovic Pinel <ludovic.pinel@orange.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Signed-off-by: Ludovic Pinel <ludovic.pinel@orange.com> Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
pylapp
added a commit
that referenced
this pull request
Mar 31, 2026
Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Signed-off-by: Ludovic PINEL <ludovic.pinel@orange.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pylapp <7559007+pylapp@users.noreply.github.com> Co-authored-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Co-authored-by: Ludovic PINEL <ludovic.pinel@orange.com>
pylapp
added a commit
that referenced
this pull request
Mar 31, 2026
Closes #1370 Suggested-by: François Suc <francois.suc@orange.com> Assisted-by: Claude Sonnet 4.6 (GitHub Copilot) Reviewed-by: Ludovic Pinel <ludovic.pinel@orange.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com> Signed-off-by: Ludovic Pinel <ludovic.pinel@orange.com> Signed-off-by: Pierre-Yves Lapersonne <pierreyves.lapersonne@orange.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
#1370
Description
Adds
oudsTintColor(_:)to theViewextension inView+Color.swift, aligning OUDS with SwiftUI's modern.tint()API (as.accentColor()is deprecated).View+Color.swift: New publicoudsTintColor(_ color: MultipleColorSemanticToken)method + privateColorSchemeBasedTintColor: ViewModifierthat resolves the token against the currentcolorSchemeand applies.tint()_OUDSComponents.md: AddedoudsTintColorto the "Apply specific colors" usage examplesAGENTS.md: Updated color helpers section to mentionoudsTintColorCHANGELOG.md: Added entry under[Unreleased]Usage:
Follows the exact same pattern as
oudsAccentColor,oudsForegroundColor,oudsBackground, etc.Motivation & Context
SwiftUI's
.accentColor()is deprecated in favor of.tint(). OUDS already wrapped the other color-application APIs (foregroundColor,background,accentColor) but was missing a tint color helper that handles light/dark token resolution.Types of change
Previews
Checklist
Contribution
Accessibility
Design
Development
Documentation
Checklist (for Core Team only)
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.