---
title: "Discussion on \"Adaptive Text Color in SwiftUI based on Background\" | Hashnode"
description: "Discussion on \"Adaptive Text Color in SwiftUI based on Background\". Hello everyone! I'd like to share an experience I had time ago. I was working on a project involving soccer teams (or football teams, for those outside the United States 😀). Each team had its unique color scheme, which I needed to incorporate as the..."
url: "https://hashnode.com/posts/adaptive-text-color-in-swiftui-based-on-background/6606d43e1f0a3f0c1c30aed7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adaptive Text Color in SwiftUI based on Background](https://swiftandtips.com/adaptive-text-color-in-swiftui-based-on-background?utm_source=hashnode&utm_medium=feed)

Hello everyone! I'd like to share an experience I had time ago. I was working on a project involving soccer teams (or football teams, for those outside the United States 😀). Each team had its unique color scheme, which I needed to incorporate as the...

Mar 29, 2024 · 4 min read · swiftandtips.com  
Read the article

-   [#luminance](https://hashnode.com/tag/luminance)
-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#color](https://hashnode.com/tag/color)
-   [#tips](https://hashnode.com/tag/tips)

## Written by

[Pedro Rojas](https://hashnode.com/@pitt500)

@pitt500 · California, US

  
[View profile](https://hashnode.com/@pitt500)

## Responses 1

Markdown supported · ⌘↵ to post

[Raúl López](https://hashnode.com/@raulLopez)

[Mar 31, 2024](https://hashnode.com/posts/adaptive-text-color-in-swiftui-based-on-background/6606d43e1f0a3f0c1c30aed7/comment/6609a660df7d06ed60add203)

I like the content

[Pedro Rojas](https://hashnode.com/@pitt500)

[Apr 1, 2024](https://hashnode.com/posts/adaptive-text-color-in-swiftui-based-on-background/6606d43e1f0a3f0c1c30aed7/comment/6609a660df7d06ed60add203#reply-660a411a57d0036b3a2396d8)

Thank you!
