Member-only story
BUILD ONCE USE EVERYWHERE
SwiftUI
Apple’s new state driven declarative UI Framework
Apple rocked the iOS world with WWDC 2019 when it announced its new state-driven, declarative UI framework. It is a change for the better and in this article we will introduce the framework and touch up on some of its new component primitives.
Before we get started, many of you might be under the dilemma whether to start learning SwiftUI
or broaden UIKit’s
knowledge. The answer to that question is simple since many current apps still need to support OS versions below iOS13, it is advised to continue growing your horizons on both the fronts.
iOS13 is the minimum deployment version for SwiftUI.
Transition from traditional UI development to SwiftUI
is reasonably smooth even with existing UIKit
applications.
Since
SwiftUI
is fresh out of the beta, expect to encounter some known issues and significant changes to the APIs.
To start building you will need Xcode 11+ and you can download it from developer.apple.com. You will also notice that Xcode 11 supports a new feature called live rendering out of the box. With live rendering you no longer have to build your projects to see the UI on a simulator. But the minimum Mac OS…