• January 9, 2021
  • July 29, 2021

2 types of Life cycle of SwiftUI

SwiftUI has 2 types of lifecycle. UIKit App Delegate SwiftUI App This post says about these life cycles. Select the life cycle of app You can select the life cycle of app when you create the project. Xcode 12 added the life cycle option into the project options dialog. However, if you choose the template for the Multiplatform, this option will not appeared. Multiplatform template always use the SwiftUI App life cycle. UIKit App Delegate UIKit App Delegate use the UIKit to implement. The framework is different by OS. UIKit App Delegate – iOS/iPadOS/tvOS AppKit App Delegate – macOS WatchKit […]