Question : how to bold text swiftui
Answered by : quaint-quail-rblyi6q3wthz
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() }
}
Source : https://stackoverflow.com/questions/59150320/how-to-bold-text-in-textfield-swiftui | Last Update : Tue, 09 Feb 21