Skip to content

Commit

Permalink
Don't scale font + add UILargeContentViewerInteraction
Browse files Browse the repository at this point in the history
  • Loading branch information
laminesm committed Feb 6, 2025
1 parent 082072c commit 1c9426c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ open class PillButton: UIButton, TokenizedControl {
layer.cornerCurve = .continuous
largeContentTitle = titleLabel?.text
showsLargeContentViewer = true
addInteraction(UILargeContentViewerInteraction())
}

private func updateAccessibilityTraits() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public class PillButtonTokenSet: ControlTokenSet<PillButtonToken> {
}

case .font:
return .uiFont { theme.typography(.body2) }
return .uiFont { theme.typography(.body2, adjustsForContentSizeCategory: false) }

case .titleColor:
return .uiColor {
Expand Down

0 comments on commit 1c9426c

Please sign in to comment.