Adam Rush

@Adam9Rush

8 February, 2022

You might be wondering how you can render markdown within a SwiftUI View, and you’ve come to the right place. In iOS 15, Apple has added markdown support right into SwiftUI out of the box.

VStack {
    Text("**Login**")
    Text("*Make sure to provide your email address*")
    Text("Click [Here](https://swiftlyrush.com) to view terms and conditions")
}

In your example, you have created a Bold Login text item, along with a subtitle using Italics and a link that will render automatically and use the default browser to load your terms and conditions.

It works like magic ;]!

Why not see what other markdown you can add?

Sponsor

Subscribe for curated Swift content for free

- weekly delivered.