Skip to content

Commit

Permalink
Update TypographyButton.swift
Browse files Browse the repository at this point in the history
Using restyleText() instead of adjustFonts()
  • Loading branch information
visakhsimon committed Oct 27, 2022
1 parent 70cbebc commit 3d1e202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/YMatterType/Elements/TypographyButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ open class TypographyButton: UIButton {
// This should be a no-op, but it's needed to force the attributed title
// to redraw itself when button state changes
setTitleColor(currentTitleColor, for: state)
adjustFonts()
restyleText()
}
}

Expand Down

0 comments on commit 3d1e202

Please sign in to comment.