Skip to content

Commit

Permalink
Fix item detail title font
Browse files Browse the repository at this point in the history
  • Loading branch information
mvasilak committed Sep 5, 2024
1 parent 9ffa374 commit eec7200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct ItemDetailState: ViewModelState {
var preScrolledChildKey: String?
var hideController: Bool
var titleFont: UIFont {
return .preferredFont(for: .headline, weight: .regular)
return .preferredFont(forTextStyle: .title1)
}

@UserDefault(key: "ItemDetailAbstractCollapsedKey", defaultValue: false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class ItemDetailTitleContentView: UIView {
setupObservers()

func setup() {
let font: UIFont = .preferredFont(for: .headline, weight: .regular)
let font: UIFont = .preferredFont(forTextStyle: .title1)
let textView = FormattedTextView(defaultFont: font)
textView.textContainerInset = UIEdgeInsets()
textView.textContainer.lineFragmentPadding = 0
Expand Down

0 comments on commit eec7200

Please sign in to comment.