How to Bold Text View in SwiftUI?

SwiftUI – Bold Text

To make the text bold in Text view, call bold() method on this Text view. bold() method applies a bold font weight to the text in this Text view.


In the following example, we created a Text view, and called bold() method on the Text view.


import SwiftUI

struct ContentView: View {
    var body: some View {
        Text("Hello, world!")



Summarising this SwiftUI Tutorial, we learned how to apply bold font weight to the text in Text view.