diff --git a/Projects/App/Widget/NearByStop/View/NearByStopView.swift b/Projects/App/Widget/NearByStop/View/NearByStopView.swift index eee97cd0..a2a24bab 100644 --- a/Projects/App/Widget/NearByStop/View/NearByStopView.swift +++ b/Projects/App/Widget/NearByStop/View/NearByStopView.swift @@ -13,9 +13,23 @@ struct NearByStopView: View { let entry: NearByStopProvider.Entry var body: some View { - VStack { + VStack(alignment: .leading) { + Spacer() + HStack { + VStack(alignment: .leading) { + Text("주변") + Text("정류장") + } + .font(.nanumHeavySU(size: 20)) + + Spacer() + } + Spacer() + Text(entry.busStopName) + .font(.nanumRegularSU(size: 16)) Text("\(entry.distance)m") + .font(.nanumExtraBoldSU(size: 16)) } .widgetBackground(Color.white) } diff --git a/Projects/DesignSystem/Sources/Font+.swift b/Projects/DesignSystem/Sources/Font+.swift new file mode 100644 index 00000000..df2e45e8 --- /dev/null +++ b/Projects/DesignSystem/Sources/Font+.swift @@ -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) + } +}