Decathlon / vitamin-ios

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

fix: crash for swiftui color #98

Closed florentlotthepro closed 2 years ago

florentlotthepro commented 2 years ago

Changes description

Add a condition to avoid code that can crash.

Context

We have a crash when we try to use a VitaminButtonUIStyle on a button with style .primary and .ghost.

Checklist

Does this introduce a breaking change?

Other information

N/A

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication