//MARK: Font Extension extension Font { enum ManropeFont { case semibold case custom(String) var value: String { switch self { case .semibold: return "Semibold" case .custom(let name): return name } } } enum RobotoFont { case semibold case custom(String) var value: String { switch self { case .semibold: return "Semibold" case .custom(let name): return name } } } static func manrope(_ type: ManropeFont, size: CGFloat = 26) -> Font { return .custom(type.value, size: size) } static func roboto(_ type: RobotoFont, size: CGFloat = 26) -> Font { return .custom(type.value, size: size) } }// 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))