Skip to content

Instantly share code, notes, and snippets.

@jaemyeong
Created August 23, 2022 14:45
Show Gist options
  • Save jaemyeong/0a72118049df062b60654699abb99902 to your computer and use it in GitHub Desktop.
Save jaemyeong/0a72118049df062b60654699abb99902 to your computer and use it in GitHub Desktop.
public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// 폰트 등록
do {
try Pretendard.registerFonts()
} catch {
os_log(.error, "%@", String(describing: error))
}
return true
}
public func applicationWillTerminate(_ application: UIApplication) {
// 폰트 취소
do {
try Pretendard.unregisterFonts()
} catch {
os_log(.error, "%@", String(describing: error))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment