SwiftUI change the font code example
Example 1: change font swiftui
.font(.custom("FONT_NAME", size: 20))
Example 2: how to set the font of text in swiftui
Text("Simple Swift Guide").font(.system(size: 45, weight: .bold, design: .default))
.font(.custom("FONT_NAME", size: 20))
Text("Simple Swift Guide").font(.system(size: 45, weight: .bold, design: .default))