attributed text with custom font namein swift code example
Example: how to set the font of text in swiftui
Text("Simple Swift Guide").font(.system(size: 45, weight: .bold, design: .default))
Text("Simple Swift Guide").font(.system(size: 45, weight: .bold, design: .default))