---
title: "Discussion on \"The Ultimate Guide to the SwiftUI 2 Application Life Cycle\" | Hashnode"
description: "Discussion on \"The Ultimate Guide to the SwiftUI 2 Application Life Cycle\". For the longest time, iOS developers have used AppDelegates as the main entry point for their applications. With the launch of SwiftUI2 at WWDC 2020, Apple has introduced a new application life cycle that (almost) completely does away with AppDelegat..."
url: "https://hashnode.com/posts/the-ultimate-guide-to-the-swiftui-2-application-life-cycle/5f803069bbabf10ec84da006"
---

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

Discussion

# [The Ultimate Guide to the SwiftUI 2 Application Life Cycle](https://peterfriese.hashnode.dev/the-ultimate-guide-to-the-swiftui-2-application-life-cycle?utm_source=hashnode&utm_medium=feed)

For the longest time, iOS developers have used AppDelegates as the main entry point for their applications. With the launch of SwiftUI2 at WWDC 2020, Apple has introduced a new application life cycle that (almost) completely does away with AppDelegat...

Oct 9, 2020 · 14 min read · peterfriese.hashnode.dev  
Updated Jan 6, 2021  
Read the article

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

## Written by

[Peter Friese](https://hashnode.com/@peterfriese)

@peterfriese · Hamburg, Germany

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

Shortening the time to magic.

Developer Advocate at Google on the Firebase team

## Responses 1

Markdown supported · ⌘↵ to post

[Emily Boston](https://hashnode.com/@emilyboston)

[Oct 9, 2020](https://hashnode.com/posts/the-ultimate-guide-to-the-swiftui-2-application-life-cycle/5f803069bbabf10ec84da006/comment/5f80489da79f81145f006ac8)

[Peter Friese](https://hashnode.com/@peterfriese) Thanks for sharing this. You could wrap @main with single backticks, as they become a user mention on Hashnode. Like this: `@main`.

[Peter Friese](https://hashnode.com/@peterfriese)

[Oct 16, 2020](https://hashnode.com/posts/the-ultimate-guide-to-the-swiftui-2-application-life-cycle/5f803069bbabf10ec84da006/comment/5f80489da79f81145f006ac8#reply-5f89b811d7dc0b17a97a2244)

Thanks [Emily Boston](https://hashnode.com/@emilyboston) - I thought I had marked all code snippets, but there were a few `@main` instances I missed. Hope I've got them all now.
