Converting Between UIFont and SwiftUI Font
Reading time: 1 min
This recipe shows how to handle conversions between UIKit UIFont
and SwiftUI Font
, as there are more than a few instances where using both is necessary. This mainly comes into play when you import UIView
s into SwiftUI via UIViewRepresentable
.
List Available Fonts in SwiftUI
Reading time: 1 min
This quick recipe show how to list and display all the fonts that are available by default in your iOS/MacOS app.
Justify Text in SwiftUI
Hyperlinks in SwiftUI Text
Reading time: 3 min
This recipe shows how to display text with tappable hyperlinks in SwiftUI, and, in doing so, fully support attributed strings, HTML and Markdown in text views on any SwiftUI version.
Markdown in SwiftUI Text
Reading time: 1 min
This recipe shows how to use markdown in SwiftUI Text views.