---
title: "Discussion on \"Avoid These Common Errors When Switching from UIKit to SwiftUI\" | Hashnode"
description: "Discussion on \"Avoid These Common Errors When Switching from UIKit to SwiftUI\". Avoid common mistakes when transitioning from UIKit to SwiftUI. Learn best practices for bindings, declarative logic, Dynamic Type, and more."
url: "https://hashnode.com/posts/avoid-these-common-errors-when-switching-from-uikit-to-swiftui/6644e4e2f285dc6596bcc4db"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Avoid These Common Errors When Switching from UIKit to SwiftUI](https://dev.jeremygale.com/avoid-these-common-errors-when-switching-from-uikit-to-swiftui?utm_source=hashnode&utm_medium=feed)

Avoid common mistakes when transitioning from UIKit to SwiftUI. Learn best practices for bindings, declarative logic, Dynamic Type, and more.

May 15, 2024 · 13 min read · dev.jeremygale.com  
Updated May 21, 2024  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#uikit](https://hashnode.com/tag/uikit)

## Written by

[Jeremy Gale](https://hashnode.com/@jgale)

@jgale · Calgary, Canada

  
[View profile](https://hashnode.com/@jgale)

iOS Developer - SwiftUI and UIKit

I am a developer from Calgary, Canada. I've been developing for iOS since 2009. I've created my own apps from scratch, including the app version of a famous Calgary restaurant reviewer's books. (Long since gone from the App Store). For the past two years, I've been using SwiftUI almost exclusively and have never had more fun writing apps.

## Responses 2

Markdown supported · ⌘↵ to post

[Toke Ollars](https://hashnode.com/@Tokero)

[May 21, 2024](https://hashnode.com/posts/avoid-these-common-errors-when-switching-from-uikit-to-swiftui/6644e4e2f285dc6596bcc4db/comment/664c59ce681fb6758279661c)

This was very helpful. Thank you.

[Peter Clarke](https://hashnode.com/@ptclarke)

[May 20, 2024](https://hashnode.com/posts/avoid-these-common-errors-when-switching-from-uikit-to-swiftui/6644e4e2f285dc6596bcc4db/comment/664bdcc9aa2126c4774095b6)

Thanks Jeremy, really very helpful article. Can you advise why you would not replace a custom loading circle with SwiftUI ProgressView()?

[Jeremy Gale](https://hashnode.com/@jgale)

[May 21, 2024](https://hashnode.com/posts/avoid-these-common-errors-when-switching-from-uikit-to-swiftui/6644e4e2f285dc6596bcc4db/comment/664bdcc9aa2126c4774095b6#reply-664bffcfccb54f5d9458d5a8)

Hi Peter, thanks for the kind words. You absolutely could use ProgressView(), I just wanted to show that even with an infinity expanding view you don't need a fixed frame. I might have overly complicated the example by doing that. :)
