Skip to content

Commit

Permalink
Refactor FXIOS-9168 - Updated Fonts On PhotonActionSheetView to FXFon…
Browse files Browse the repository at this point in the history
…tStyles (#20331)
  • Loading branch information
tisumi99 committed May 22, 2024
1 parent d49462c commit d75cea1
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,14 @@ class PhotonActionSheetView: UIView, UIGestureRecognizerDelegate, ThemeApplicabl
label.numberOfLines = 0
label.lineBreakMode = .byWordWrapping
label.setContentCompressionResistancePriority(.required, for: .horizontal)
label.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body,
size: 19)
label.font = FXFontStyles.Regular.title3.scaledFont()
return label
}()

private lazy var subtitleLabel: UILabel = {
let label = createLabel()
label.numberOfLines = 0
label.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .caption1,
size: 13)
label.font = FXFontStyles.Regular.footnote.scaledFont()
return label
}()

Expand Down Expand Up @@ -190,11 +188,9 @@ class PhotonActionSheetView: UIView, UIGestureRecognizerDelegate, ThemeApplicabl
titleLabel.text = item.currentTitle

if item.bold {
titleLabel.font = DefaultDynamicFontHelper.preferredBoldFont(withTextStyle: .headline,
size: 19)
titleLabel.font = FXFontStyles.Bold.title3.scaledFont()
} else {
titleLabel.font = DefaultDynamicFontHelper.preferredFont(withTextStyle: .body,
size: 17)
titleLabel.font = FXFontStyles.Regular.body.scaledFont()
}

item.customRender?(titleLabel, self)
Expand Down

0 comments on commit d75cea1

Please sign in to comment.