Releases: Telefonica/mistica-ios
v32.0.0
32.0.0 (2024-08-19)
Features
BREAKING CHANGES
-
Title: Rename TitleView with TitleHeaderFooterView. TitleHeaderFooterView will wrap the TitleView (Title component)
-
Enable link interactions
-
Extract Title component from TitleView (UITableViewHeaderFooterView)
-
Rename and some fixes
-
Rename tests path
-
CR changes
Migration guide
TitleView
has been renamed to TitleHeaderFooterView
. If you already use TitleView
, please, rename it to TitleHeaderFooterView
.
Now, TitleView
contains the Title component and TitleHeaderFooterView
wraps the component as a UITableViewHeaderFooterView
.
v31.4.1
v31.4.0
v31.3.0
v31.2.0
v31.1.0
v31.0.0
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))