Skip to content

Commit 3dbfb3a

Browse files
committed
🚚 [style] μ£Όμ†Œ ν‘œμ‹œ ν™”λ©΄ 폰트, μ•„μ΄μ½˜ μ‚¬μ΄μ¦ˆ 및 간격 μˆ˜μ •
1 parent cef75c3 commit 3dbfb3a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

β€ŽFitfty/Projects/MainFeed/Sources/Main/Home/Views/LocationView.swiftβ€Ž

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class LocationView: UIStackView {
1818
private lazy var locationLabel: UILabel = {
1919
let label = UILabel()
2020
label.textColor = .black
21-
label.font = .preferredFont(for: .callout, weight: .semibold)
21+
label.font = FitftyFont.appleSDSemiBold(size: 15).font
2222
label.setContentHuggingPriority(.defaultHigh, for: .horizontal)
2323
label.translatesAutoresizingMaskIntoConstraints = false
2424
return label
@@ -28,11 +28,12 @@ final class LocationView: UIStackView {
2828
let button = UIButton()
2929
let config = UIImage.SymbolConfiguration(
3030
font: .preferredFont(for: .subheadline, weight: .regular),
31-
scale: .large
31+
scale: .medium
3232
)
3333
button.setImage(UIImage(systemName: "chevron.down")?.withConfiguration(config), for: .normal)
3434
button.tintColor = .black
35-
button.addTarget(self, action: #selector(didTapButton(_:)), for: .touchUpInside)
35+
button.isUserInteractionEnabled = false
36+
button.setContentHuggingPriority(.defaultHigh, for: .horizontal)
3637
return button
3738
}()
3839

@@ -46,14 +47,10 @@ final class LocationView: UIStackView {
4647
axis = .horizontal
4748
alignment = .center
4849
distribution = .fill
49-
spacing = 2
50+
spacing = 3
5051
addArrangedSubviews(locationLabel, locationButton)
5152
}
5253

53-
@objc func didTapButton(_ sender: UIButton) {
54-
print(#function)
55-
}
56-
5754
func update(location: String) {
5855
locationLabel.text = location
5956
}

0 commit comments

Comments
Β (0)