---
title: "Creating a custom label style that tints the label icon"
url: https://daily.dev/posts/creating-a-custom-label-style-that-tints-the-label-icon-zilxdpfmw
source_url: https://danielsaidi.com/blog/2024/04/04/creating-a-custom-swiftui-labelstyle-that-tints-the-label-icon
type: article
source: "Daniel Saidi"
published: 2026-07-05T07:14:25.848Z
updated: 2026-07-05T07:18:57.266Z
tags: ["ios", "swift", "swiftui"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating a custom label style that tints the label icon

**[Daniel Saidi](https://daily.dev/sources/danielsaidi)** · 2 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of creating a custom SwiftUI LabelStyle called IconTintLabelStyle that applies a tint color only to the icon portion of a Label, leaving the text unchanged. The post shows how to implement the style struct, add a convenient static extension on LabelStyle, and compose it with the tint modifier so button and icon colors can be controlled independently.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://danielsaidi.com/blog/2024/04/04/creating-a-custom-swiftui-labelstyle-that-tints-the-label-icon>

---

Tags: [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/creating-a-custom-label-style-that-tints-the-label-icon-zilxdpfmw)
