Last active
March 28, 2020 18:53
-
-
Save Bradysm/257de392f2a05da14d0fdbdaf9e367d5 to your computer and use it in GitHub Desktop.
Custom font example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Brady Murphy | |
import SwiftUI | |
// create the custom font | |
let headerFont = Font.custom(FontNameManager.Montserrat.semiBold, size: 28) | |
struct ExampleView: View { | |
var body: some View { | |
// using the custom font to modify the text view | |
Text("Hello World") | |
.font(headerFont) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment