Skip to content

Commit

Permalink
Adjusting labels font size to fit width
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrybucco committed Sep 3, 2021
1 parent 61fbdbc commit effc3f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/DropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ internal final class DropView: UIView {
}
label.font = UIFont.preferredFont(forTextStyle: .subheadline).bold
label.adjustsFontForContentSizeCategory = true
label.adjustsFontSizeToFitWidth = true
return label
}()

Expand All @@ -163,6 +164,7 @@ internal final class DropView: UIView {
}
label.font = UIFont.preferredFont(forTextStyle: .subheadline)
label.adjustsFontForContentSizeCategory = true
label.adjustsFontSizeToFitWidth = true
return label
}()

Expand Down

0 comments on commit effc3f8

Please sign in to comment.