<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl" -->

---
title: Did you ever rely on snapshot tests for SwiftUI and then...
description: Snapshot tests for SwiftUI can become problematic when design changes occur. Minor adjustments like font shifts or padding changes cause dozens of test...
canonical: https://daily.dev/posts/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Did you ever rely on snapshot tests for SwiftUI and then regret it a few months later? | daily.dev
og:description: Snapshot tests for SwiftUI can become problematic when design changes occur. Minor adjustments like font shifts or padding changes cause dozens of test...
og:url: https://daily.dev/posts/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl
og:image: https://api.daily.dev/og/posts/rOMCIvVjL.png
og:image:alt: Did you ever rely on snapshot tests for SwiftUI and then regret it a few months later?
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.

# Did you ever rely on snapshot tests for SwiftUI and then regret it a few months later?

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

## Summary

Snapshot tests for SwiftUI can become problematic when design changes occur. Minor adjustments like font shifts or padding changes cause dozens of test failures. The solution is to limit snapshots to only the riskiest screens and rely on state-based assertions for logic validation instead of using snapshots as the default testing approach.

## Full article

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

## Similar posts on daily.dev

- [Testing can be fun, actually](https://daily.dev/posts/testing-can-be-fun-actually-iorwrxdme) · Lobsters · 0 upvotes · 0 comments
- [Snapshot Testing on iOS: A Setup That Actually Stays Green](https://daily.dev/posts/snapshot-testing-on-ios-a-setup-that-actually-stays-green-wxncwpy3s) · Medium · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#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/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl)

```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":"Did you ever rely on snapshot tests for SwiftUI and then regret it a few months later?","url":"https://daily.dev/posts/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl"},"datePublished":"2026-01-25T19:08:38.471Z","dateModified":"2026-01-25T19:08:58.760Z","description":"Snapshot tests for SwiftUI can become problematic when design changes occur. Minor adjustments like font shifts or padding changes cause dozens of test...","image":"https://i.ytimg.com/vi/v_oJTOJkCFc/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/v_oJTOJkCFc/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/did-you-ever-rely-on-snapshot-tests-for-swiftui-and-then-regret-it-a-few-months-later--romcivvjl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,ios,swift,swiftui","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"Did you ever rely on snapshot tests for SwiftUI and then regret it a few months later?","description":"Snapshot tests for SwiftUI can become problematic when design changes occur. Minor adjustments like font shifts or padding changes cause dozens of test...","thumbnailUrl":"https://i.ytimg.com/vi/v_oJTOJkCFc/sddefault.jpg","uploadDate":"2026-01-25T19:08:38.471Z","duration":"PT1M","url":"https://api.daily.dev/r/rOMCIvVjL","embedUrl":"https://www.youtube.com/embed/v_oJTOJkCFc"}}
{"@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":"Did you ever rely on snapshot tests for SwiftUI and then regret it a few months later?"}]}
```

