<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz" -->

---
title: SwiftUI UI Upgrade: One Animation That Changes Everything
description: A walkthrough of building a reusable &#x27;breathing&#x27; animation view modifier in SwiftUI. The tutorial covers creating a custom modifier that accepts scale,...
canonical: https://daily.dev/posts/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: SwiftUI UI Upgrade: One Animation That Changes Everything | daily.dev
og:description: A walkthrough of building a reusable &#x27;breathing&#x27; animation view modifier in SwiftUI. The tutorial covers creating a custom modifier that accepts scale,...
og:url: https://daily.dev/posts/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz
og:image: https://api.daily.dev/og/posts/RPOzW3uVz.png
og:image:alt: SwiftUI UI Upgrade: One Animation That Changes Everything
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.

# SwiftUI UI Upgrade: One Animation That Changes Everything

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

## Summary

A walkthrough of building a reusable 'breathing' animation view modifier in SwiftUI. The tutorial covers creating a custom modifier that accepts scale, opacity, and duration parameters, then applying it to any SwiftUI view. Two examples are shown: one with default values and one with custom parameters like scale 0.7 and duration 1.2.

## Full article

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

---

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/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz)

```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":"SwiftUI UI Upgrade: One Animation That Changes Everything","url":"https://daily.dev/posts/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz"},"datePublished":"2026-04-21T09:33:48.064Z","dateModified":"2026-04-21T09:34:07.481Z","description":"A walkthrough of building a reusable 'breathing' animation view modifier in SwiftUI. The tutorial covers creating a custom modifier that accepts scale,...","image":"https://i.ytimg.com/vi/zvr5raWJVRI/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/zvr5raWJVRI/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/swiftui-ui-upgrade-one-animation-that-changes-everything-rpozw3uvz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,swift,swiftui","timeRequired":"PT2M","video":{"@type":"VideoObject","name":"SwiftUI UI Upgrade: One Animation That Changes Everything","description":"A walkthrough of building a reusable 'breathing' animation view modifier in SwiftUI. The tutorial covers creating a custom modifier that accepts scale,...","thumbnailUrl":"https://i.ytimg.com/vi/zvr5raWJVRI/sddefault.jpg","uploadDate":"2026-04-21T09:33:48.064Z","duration":"PT2M","url":"https://api.daily.dev/r/RPOzW3uVz","embedUrl":"https://www.youtube.com/embed/zvr5raWJVRI"}}
{"@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":"SwiftUI UI Upgrade: One Animation That Changes Everything"}]}
```

