what version of Swift was SwiftUI introduced in?

Asked on 08/02/2024

1 search

SwiftUI was introduced with Swift 5. This is mentioned in the context from the session "What’s new in Swift" where it states:

"In Swift five, we introduced the stable ABI on Apple platforms. For app developers, this meant a smaller download size because you no longer bundled a complete copy of the Swift standard library in your app. Instead, the Swift standard library was part of the os itself, optimized for that os, and shared across all Swift apps and frameworks. This represented a fundamental shift, because now we could use full expressive power of Swift to build better, safer APIs and frameworks. And we did, with the introduction of SwiftUI, which leverages Swift's unique features to build UI apps better faster."

For more details, you can refer to the session What’s new in Swift (00:01:56).