<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t" -->

---
title: With async image loading in SwiftUI, did appearance...
description: A subtle bug in SwiftUI async image loading caused UI inconsistencies when users switched between light and dark mode. The root cause was caching fully...
canonical: https://daily.dev/posts/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: With async image loading in SwiftUI, did appearance changes ever cause rendering issues? | daily.dev
og:description: A subtle bug in SwiftUI async image loading caused UI inconsistencies when users switched between light and dark mode. The root cause was caching fully...
og:url: https://daily.dev/posts/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t
og:image: https://api.daily.dev/og/posts/2DCOsAj6T.png
og:image:alt: With async image loading in SwiftUI, did appearance changes ever cause rendering issues?
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.

# With async image loading in SwiftUI, did appearance changes ever cause rendering issues?

**[Rebeloper](https://daily.dev/sources/rebeloper)** · 1 min read · 0 upvotes · 0 comments

## Summary

A subtle bug in SwiftUI async image loading caused UI inconsistencies when users switched between light and dark mode. The root cause was caching fully rendered bitmaps with baked-in backgrounds instead of raw image assets. The fix involved refactoring the cache to store original images and applying backgrounds at render time, plus invalidating the cache whenever the color scheme changed.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=Mwt1U_Hr6bg>

## Similar posts on daily.dev

- [Debugging Notes on Two SwiftUI Animation Bugs](https://daily.dev/posts/debugging-notes-on-two-swiftui-animation-bugs-zk9mhqhkq) · Fatbobman · 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/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t)

```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":"With async image loading in SwiftUI, did appearance changes ever cause rendering issues?","url":"https://daily.dev/posts/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t"},"datePublished":"2026-03-03T07:32:39.946Z","dateModified":"2026-03-03T07:32:55.680Z","description":"A subtle bug in SwiftUI async image loading caused UI inconsistencies when users switched between light and dark mode. The root cause was caching fully...","image":"https://i.ytimg.com/vi/Mwt1U_Hr6bg/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/Mwt1U_Hr6bg/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Rebeloper","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":"Rebeloper","logo":"https://media.daily.dev/image/upload/s--W0sZL8K4--/f_auto/v1726990075/logos/rebeloper","url":"https://daily.dev/sources/rebeloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/with-async-image-loading-in-swiftui-did-appearance-changes-ever-cause-rendering-issues--2dcosaj6t","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,swift,swiftui","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"With async image loading in SwiftUI, did appearance changes ever cause rendering issues?","description":"A subtle bug in SwiftUI async image loading caused UI inconsistencies when users switched between light and dark mode. The root cause was caching fully...","thumbnailUrl":"https://i.ytimg.com/vi/Mwt1U_Hr6bg/sddefault.jpg","uploadDate":"2026-03-03T07:32:39.946Z","duration":"PT1M","url":"https://api.daily.dev/r/2DCOsAj6T","embedUrl":"https://www.youtube.com/embed/Mwt1U_Hr6bg"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rebeloper","item":"https://daily.dev/sources/rebeloper"},{"@type":"ListItem","position":3,"name":"With async image loading in SwiftUI, did appearance changes ever cause rendering issues?"}]}
```

