<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp" -->

---
title: Add an inner shadow to a symbol image in SwiftUI | daily.dev
description: SwiftUI allows applying an inner shadow to SF Symbol images using the foreground style modifier combined with `.shadow(.inner(...))`. This creates a cut-out...
canonical: https://daily.dev/posts/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Add an inner shadow to a symbol image in SwiftUI | daily.dev
og:description: SwiftUI allows applying an inner shadow to SF Symbol images using the foreground style modifier combined with `.shadow(.inner(...))`. This creates a cut-out...
og:url: https://daily.dev/posts/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp
og:image: https://api.daily.dev/og/posts/xSjQ5ljZp.png
og:image:alt: Add an inner shadow to a symbol image in SwiftUI
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Add an inner shadow to a symbol image in SwiftUI

**[Nil Coalescing](https://daily.dev/sources/nilcoalescing)** · 2 min read · 0 upvotes · 0 comments

## Summary

SwiftUI allows applying an inner shadow to SF Symbol images using the foreground style modifier combined with `.shadow(.inner(...))`. This creates a cut-out icon effect where the symbol appears inset into its background. The technique works particularly well with circular or rounded symbol variants and supports customizable shadow radius and color for subtle or strong effects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nilcoalescing.com/blog/AddAnInnerShadowToASymbolImageInSwiftUI>

## Similar posts on daily.dev

- [The Art of Shadows in Jetpack Compose](https://daily.dev/posts/the-art-of-shadows-in-jetpack-compose-gmjf7ynmx) · droidcon · 0 upvotes · 0 comments

---

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/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Add an inner shadow to a symbol image in SwiftUI","url":"https://daily.dev/posts/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp"},"datePublished":"2026-08-02T07:15:03.530Z","dateModified":"2026-08-02T07:19:30.958Z","description":"SwiftUI allows applying an inner shadow to SF Symbol images using the foreground style modifier combined with `.shadow(.inner(...))`. This creates a cut-out...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3dd1c603dc0916b75a857f076d0984bc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3dd1c603dc0916b75a857f076d0984bc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Nil Coalescing","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Nil Coalescing","logo":"https://media.daily.dev/image/upload/s--rcEu6sag--/f_auto,q_auto/v1785654899/logos/nilcoalescing?_a=BAMAMicg0","url":"https://daily.dev/sources/nilcoalescing"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/add-an-inner-shadow-to-a-symbol-image-in-swiftui-xsjq5ljzp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,swift,swiftui","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Nil Coalescing","item":"https://daily.dev/sources/nilcoalescing"},{"@type":"ListItem","position":3,"name":"Add an inner shadow to a symbol image in SwiftUI"}]}
```

