Decathlon / vitamin-ios

Decathlon Design System UI components for iOS & iPadOS applications
https://www.decathlon.design
Apache License 2.0
46 stars 14 forks source link

bug: the `setTitle` function removes text style of the buttons on iOS12 #26

Open lauthieb opened 2 years ago

lauthieb commented 2 years ago

Describe the bug

When using the setTitle function which is override on Vitamin:

public override func setTitle(_ title: String?, for state: UIControl.State) {
    super.setTitle(title, for: state)
    applyNewTextStyle()
}

The textstyle on the button is no longer applied on iOS 12

daniel-dumortier commented 1 year ago

it could be worth checking if #102 has fixed this issue