Related: How To Use NSAttributedString in SwiftUI: Hack It! We use NSAttributedString to create different styled texts in Swift. There are many options to modify in this class. To understand how it works, let’s get started with a simple attributed string example. let str = "Coffee Break Codes" var attribute […]
