SwiftUI is Apple’s declarative UI framework. At WWDC 2021, it was once again greeted with exciting new enhancements, features, and some deprecations for our own good.
Before we start, it’s worth noting that the Info.plist file is no longer visible by default in the Xcode 13 project structure. Instead, you’ll have to access it from the Project Navigator tab.
In the next few sections, we’ll look at the new features of SwiftUI for iOS 15 (though most of them will work in some form on the other platforms as well).
Starting with iOS 15, Apple is bringing Markdown support to the Foundation framework and SwiftUI. So, you can add strings with Markdown syntax in SwiftUI Text, as shown below:
If you’d like to customize a range of characters in the string above, there’s an all-new AttributeString API for SwiftUI and an enhanced NSAttributedString for UIKit.