swiftui bold font code example

Example 1: swiftui font add

// Create a new Folder(group) "Fonts"
// Drag your fonts files in it with Create Groups and your prj as Ref
// Add property “Fonts provided by application.” into Info.plist
// Copy and paste the names of the fonts with extension
// Now use them 
.font(.custom("Your-Font-Name.noExtension", size: 42))

Example 2: how to bold text swiftui

import SwiftUI

struct ContentView: View {
    @State var TextValue: String = "Hello"

    var body: some View {
        VStack {
            TextField("placeholder", text: $TextValue)
            .padding(.horizontal, 50)
                .font(.system(size: 30, weight: .heavy, design: .default))
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}