Skip to content

Instantly share code, notes, and snippets.

View richwolf's full-sized avatar
😜
Easily the laziest person you know.

Richard Kendall Wolf richwolf

😜
Easily the laziest person you know.
View GitHub Profile
@richwolf
richwolf / CustomFont.swift
Created February 22, 2022 23:38
Using a custom font within a SwiftUI playground
/*
To use a custom font in a SwiftUI playground, place the font in
the playground's Resources folder. It can then be loaded into the
playground useing CTFontManagerRegisterFontsForURL()
In the following example, Lato-Bold has been places into the
Resouces folder
*/
import SwiftUI