Skip to content

Commit

Permalink
Show large content viewer instead of scaling pill buttons in large te…
Browse files Browse the repository at this point in the history
…xt mode (#2127)
  • Loading branch information
laminesm authored Feb 6, 2025
1 parent 0345cd8 commit 8f6a3c0
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 8f6a3c0

Please sign in to comment.