Skip to content

Commit

Permalink
UI/#291 Cell에 text 흘러넘치는 UI오류 (#295)
Browse files Browse the repository at this point in the history
* [UI] #291 긴 text가 label 범위를 벗어나는 UI 수정

* [Fix] #291 NearMapInformationView text scale factor 활성화 코드 수정
  • Loading branch information
isakatty authored May 10, 2024
1 parent a0150a6 commit 03fc077
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class BusStopInformationView: UIView {
private let busStopDescription: UILabel = {
let label = UILabel()
label.font = .nanumRegular(size: 13)
label.adjustsFontForContentSizeCategory = true
label.adjustsFontSizeToFitWidth = true
label.minimumScaleFactor = 0.8
label.textColor = .adaptiveBlack.withAlphaComponent(0.8)
return label
Expand Down Expand Up @@ -127,7 +127,8 @@ public final class BusStopInformationView: UIView {
equalTo: busStopNameLabel.leadingAnchor
),
busStopDescription.trailingAnchor.constraint(
equalTo: busStopNameLabel.trailingAnchor
equalTo: trailingAnchor,
constant: -15
),
busStopDescription.topAnchor.constraint(
equalTo: busStopNameLabel.bottomAnchor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public final class BusStopInfoView: UIView {
descriptionLabel.leadingAnchor.constraint(
equalTo: busStopNameLabel.leadingAnchor
),
descriptionLabel.trailingAnchor.constraint(
equalTo: trailingAnchor,
constant: -15
),
descriptionLabel.bottomAnchor.constraint(
equalTo: bottomAnchor,
constant: -15
Expand Down

0 comments on commit 03fc077

Please sign in to comment.