Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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))
Source by www.simpleswiftguide.com #
 
PREVIOUS NEXT
Tagged: #swiftui #font #add
ADD COMMENT
Topic
Name
1+3 =