swiftui font types 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: change font swiftui
.font(.custom("FONT_NAME", size: 20))
Example 3: how to set the font of text in swiftui
Text("Simple Swift Guide").font(.system(size: 45, weight: .bold, design: .default))