gmarket_sans 폰트 제거
This commit is contained in:
@@ -28,7 +28,7 @@ struct TextViewWrapper: UIViewRepresentable {
|
||||
view.textColor = text.trimmingCharacters(in: .whitespacesAndNewlines) != "" ? UIColor(hex: textColorHex) : .placeholderText
|
||||
}
|
||||
|
||||
view.font = UIFont(name: Font.medium.rawValue, size: 13.3)
|
||||
view.font = UIFont(name: Font.preMedium.rawValue, size: 13.3)
|
||||
view.backgroundColor = backgroundColorHex.isEmpty ? .clear : UIColor(hex: backgroundColorHex)
|
||||
view.layer.cornerRadius = 6.7
|
||||
view.textContainerInset = UIEdgeInsets(top: 20, left: 13.3, bottom: 20, right: 13.3)
|
||||
|
||||
@@ -42,7 +42,7 @@ struct ChatTextFieldView: UIViewRepresentable {
|
||||
textField.backgroundColor = UIColor(hex: "222222")
|
||||
textField.textColor = UIColor(hex: "BBBBBB")
|
||||
textField.tintColor = UIColor(hex: "3BB9F1")
|
||||
textField.font = UIFont(name: Font.medium.rawValue, size: 13.3)
|
||||
textField.font = UIFont(name: Font.preMedium.rawValue, size: 13.3)
|
||||
textField.returnKeyType = .send
|
||||
textField.setContentHuggingPriority(.defaultLow, for: .horizontal) // 우선순위 낮추기
|
||||
textField.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) // 우선순위 낮추기
|
||||
|
||||
@@ -30,7 +30,7 @@ struct FocusedTextField: UIViewRepresentable {
|
||||
func makeUIView(context: Context) -> UITextField {
|
||||
let textField = UITextField()
|
||||
textField.delegate = context.coordinator
|
||||
textField.font = UIFont(name: Font.medium.rawValue, size: 13.3)
|
||||
textField.font = UIFont(name: Font.preMedium.rawValue, size: 13.3)
|
||||
textField.textColor = UIColor(hex: "eeeeee", alpha: 1.0)
|
||||
textField.tintColor = UIColor(hex: "3bb9f1", alpha: 1.0)
|
||||
textField.keyboardType = .default
|
||||
|
||||
@@ -73,7 +73,7 @@ struct CreatorCommunityAllItemView: View {
|
||||
}
|
||||
}
|
||||
|
||||
DetectableTextView(text: item.content, textSize: 13.3, font: Font.medium.rawValue)
|
||||
DetectableTextView(text: item.content, textSize: 13.3, font: Font.preMedium.rawValue)
|
||||
.frame(
|
||||
width: screenSize().width - 42,
|
||||
height: textHeight
|
||||
|
||||
@@ -5,13 +5,7 @@
|
||||
// Created by klaus on 2023/08/09.
|
||||
//
|
||||
|
||||
enum Font: String {
|
||||
case bold = "GmarketSansBold"
|
||||
|
||||
case medium = "GmarketSansMedium"
|
||||
|
||||
case light = "GmarketSansLight"
|
||||
|
||||
enum Font: String {
|
||||
case preBold = "Pretendard-Bold"
|
||||
|
||||
case preMedium = "Pretendard-Medium"
|
||||
|
||||
@@ -11,7 +11,7 @@ import UIKit
|
||||
struct DetectableTextView: UIViewRepresentable {
|
||||
var text: String
|
||||
var textSize: CGFloat = 11.3
|
||||
var font: String = Font.light.rawValue
|
||||
var font: String = Font.preLight.rawValue
|
||||
|
||||
func makeUIView(context: Context) -> UITextView {
|
||||
let textView = UITextView()
|
||||
|
||||
Reference in New Issue
Block a user