Skip to content

v31.0.0

Compare
Choose a tag to compare
@tuentisre tuentisre released this 12 Jul 10:49
· 21 commits to main since this release

31.0.0 (2024-07-12)

Features

  • MisticaColors: Update MisticaColors and VivoNew palette (24a0a7c)

BREAKING CHANGES

  • MisticaColors: Refactor backgroundContainerBrand color token as MisticaColor

Migration guide from UIKit
To use the backgroundContainerBrand token from UIKit view we will have to make the following change:
Old way:
view.backgroundColor = .backgroundContainerBrand
New way:
setMisticaColorBackground(.backgroundContainerBrand)

For the case of UIStackView that contain background colors it would be advisable to change it and that it is the UIView that contains the UIStackView the one that has assigned the color. Once this change is done, it is also advisable that the UIStackView has a backgroundColor of type .clear:

setMisticaColorBackground(.backgroundContainerBrand)
stackView.backgroundColor = .clear

As a somewhat more exceptional case, you may need to use the optional parameter of setMisticaColor called ignoreSafeArea, since there are cases in which if you apply a MisticaColor to full screen the safe area may be incomplete and therefore you would have to set true when you set the MisticaColor:
setMisticaColorBackground(.backgroundContainerBrand, ignoreSafeArea: true)

By default this parameter is always set to false.

Migration guide from SwiftUI
To use the backgroundContainerBrand token from SwiftUI view we will have to make the following change:
Old way:
.background(Color.backgroundContainerBrand)
New way:
.background(misticaColorView(.backgroundContainerBrand))