v30.0.0
30.0.0 (2024-05-09)
Features
- O2New: Add new O2New brand (6c8c194)
BREAKING CHANGES
- O2New: Refactor backgroundBrand color token as MisticaColor new type
Migration guide from UIKit
To use the backgroundBrand token from UIKit view we will have to make the following change:
Old way:
view.backgroundColor = .backgroundBrand
New way:
setMisticaColorBackground(.backgroundBrand)
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(.backgroundBrand)
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(.backgroundBrand, ignoreSafeArea: true)
By default this parameter is always set to false.
Migration guide from SwiftUI
To use the backgroundBrand token from SwiftUI view we will have to make the following change:
Old way:
.background(Color.backgroundBrand)
New way:
.background(misticaColorView(.backgroundBrand))