-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Setting] #239 SwiftUI에서 사용할 Font 적용 extension 추가
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Font+.swift | ||
// DesignSystem | ||
// | ||
// Created by Jisoo HAM on 4/17/24. | ||
// Copyright © 2024 Pepsi-Club. All rights reserved. | ||
// | ||
|
||
import SwiftUI | ||
|
||
public extension Font { | ||
typealias Nanum = DesignSystemFontFamily.NanumSquareNeoOTF | ||
|
||
static func nanumLightSU(size: CGFloat) -> Font { | ||
Nanum.light.swiftUIFont(size: size) | ||
} | ||
|
||
static func nanumRegularSU(size: CGFloat) -> Font { | ||
Nanum.regular.swiftUIFont(size: size) | ||
} | ||
|
||
static func nanumBoldSU(size: CGFloat) -> Font { | ||
Nanum.bold.swiftUIFont(size: size) | ||
} | ||
|
||
static func nanumExtraBoldSU(size: CGFloat) -> Font { | ||
Nanum.extraBold.swiftUIFont(size: size) | ||
} | ||
|
||
static func nanumHeavySU(size: CGFloat) -> Font { | ||
Nanum.heavy.swiftUIFont(size: size) | ||
} | ||
} |