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: VitaminButtons do not work properly with iOS15 plain button #62

Closed daniel-dumortier closed 2 years ago

daniel-dumortier commented 2 years ago

Describe the bug When you drag a button in a storyboard in Xcode 13+, it is automatically forced with the 'Plain' configuration. With this configuration, the styling of VitaminButton does not work well (especially the bacjground color)

Steps to reproduce

  1. add a Button to your storyboard
  2. check in the attribute inspector that its "Style" property is set to anything else than Default (it should be Plain)
  3. programmatically assign a .primary Vitmain style to this button
  4. run your app
  5. button will have no background

Expected behavior the button should have a coloured background

Screenshots Simulator Screen Shot - iPhone 8 - 2022-05-12 at 14 03 14

Device (please complete the following information):