diff --git a/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogSectionTitleViewController.swift b/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogSectionTitleViewController.swift index 989f5091..0eb7b93e 100644 --- a/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogSectionTitleViewController.swift +++ b/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogSectionTitleViewController.swift @@ -28,7 +28,15 @@ private enum Constants { Style(titleStyle: .title2, title: "Title2 with link", linkTitle: "Text link"), Style(titleStyle: .title2, title: "Title2 with no link", linkTitle: nil), Style(titleStyle: .title2, title: "Title2 with link and some large title using 2 lines", linkTitle: "Text link"), - Style(titleStyle: .title2, title: "Title2 with no link and some large title using 2 lines", linkTitle: nil) + Style(titleStyle: .title2, title: "Title2 with no link and some large title using 2 lines", linkTitle: nil), + Style(titleStyle: .title3, title: "Title3 with link", linkTitle: "Text link"), + Style(titleStyle: .title3, title: "Title3 with no link", linkTitle: nil), + Style(titleStyle: .title3, title: "Title3 with link and some large title using 2 lines", linkTitle: "Text link"), + Style(titleStyle: .title3, title: "Title3 with no link and some large title using 2 lines", linkTitle: nil), + Style(titleStyle: .title4, title: "Title4 with link", linkTitle: "Text link"), + Style(titleStyle: .title4, title: "Title4 with no link", linkTitle: nil), + Style(titleStyle: .title4, title: "Title4 with link and some large title using 2 lines", linkTitle: "Text link"), + Style(titleStyle: .title4, title: "Title4 with no link and some large title using 2 lines", linkTitle: nil) ] } } diff --git a/Sources/Mistica/Components/Title/TitleView.swift b/Sources/Mistica/Components/Title/TitleView.swift index 84cbea33..071107e4 100644 --- a/Sources/Mistica/Components/Title/TitleView.swift +++ b/Sources/Mistica/Components/Title/TitleView.swift @@ -19,13 +19,19 @@ public class TitleView: UIView { public enum Style { case title1 case title2 + case title3 + case title4 var font: UIFont { switch self { case .title1: return .textPreset1(weight: .title1) case .title2: - return .textPreset5() + return .textPreset3(weight: .title2) + case .title3: + return .textTitle3() + case .title4: + return .textPreset6() } } @@ -33,7 +39,9 @@ public class TitleView: UIView { switch self { case .title1: return .textSecondary - case .title2: + case .title2, + .title3, + .title4: return .textPrimary } } @@ -42,7 +50,9 @@ public class TitleView: UIView { switch self { case .title1: return text?.uppercased() - case .title2: + case .title2, + .title3, + .title4: return text } } @@ -161,7 +171,7 @@ private extension TitleView.Style { static var `default`: Self { switch MisticaConfig.brandStyle { case .movistar: - return .title2 + return .title3 case .blau, .o2, .o2New, .vivo, .custom, .vivoNew, .telefonica, .tu: return .title1 } diff --git a/Sources/MisticaCommon/Fonts/FontStyle+Weights.swift b/Sources/MisticaCommon/Fonts/FontStyle+Weights.swift index 89a17fee..bf1cd54c 100644 --- a/Sources/MisticaCommon/Fonts/FontStyle+Weights.swift +++ b/Sources/MisticaCommon/Fonts/FontStyle+Weights.swift @@ -40,7 +40,7 @@ public extension FontStyle { } enum TextPreset3Weight: CaseIterable { - case light, regular, medium, button, link + case light, regular, medium, button, link, title2, title3 var value: MisticaFontWeightType { switch self { @@ -49,6 +49,8 @@ public extension FontStyle { case .medium: return .medium case .button: return MisticaConfig.currentFontWeights.button case .link: return MisticaConfig.currentFontWeights.link + case .title2: return MisticaConfig.currentFontWeights.title2 + case .title3: return MisticaConfig.currentFontWeights.title3 } } } diff --git a/Sources/MisticaCommon/Fonts/FontStyle.swift b/Sources/MisticaCommon/Fonts/FontStyle.swift index 743e9f31..510dc39a 100644 --- a/Sources/MisticaCommon/Fonts/FontStyle.swift +++ b/Sources/MisticaCommon/Fonts/FontStyle.swift @@ -22,6 +22,7 @@ import UIKit case textPreset9 case textPreset10 case textPresetTabsLabel + case textTitle3 func preferredFont( weight: Font.Weight, @@ -78,6 +79,8 @@ import UIKit return "TextPreset10" case .textPresetTabsLabel: return "TextPresetTabsLabel" + case .textTitle3: + return "TextPresetTitle3" } } } @@ -130,6 +133,8 @@ private extension FontStyle { return 48 case .textPresetTabsLabel: return MisticaConfig.currentFontSizes.tabsLabel + case .textTitle3: + return MisticaConfig.currentFontSizes.title3 } } @@ -144,7 +149,8 @@ private extension FontStyle { return .body case .textPreset4: return .headline - case .textPreset5: + case .textPreset5, + .textTitle3: return .title3 case .textPreset6: return .title2 @@ -168,7 +174,8 @@ private extension FontStyle { return .body case .textPreset4: return .headline - case .textPreset5: + case .textPreset5, + .textTitle3: return .title3 case .textPreset6: return .title2 diff --git a/Sources/MisticaCommon/Fonts/FontToolkit+Font.swift b/Sources/MisticaCommon/Fonts/FontToolkit+Font.swift index 79c2d4c2..68181670 100644 --- a/Sources/MisticaCommon/Fonts/FontToolkit+Font.swift +++ b/Sources/MisticaCommon/Fonts/FontToolkit+Font.swift @@ -59,6 +59,13 @@ public extension Font { ) } + static func textTitle3(constrainedToPreferredSize: UIContentSizeCategory? = nil) -> Font { + FontStyle.textTitle3.preferredFont( + weight: MisticaConfig.currentFontWeights.title3.systemWeight, + constrainedToPreferredSize: constrainedToPreferredSize + ) + } + static func preferredFont(for fontStyle: FontStyle, weight: Font.Weight, constrainedToPreferredSize constrainedPreferredSize: UIContentSizeCategory) -> Font { fontStyle.preferredFont(weight: weight, constrainedToPreferredSize: constrainedPreferredSize) } diff --git a/Sources/MisticaCommon/Fonts/FontToolkit+UIFont.swift b/Sources/MisticaCommon/Fonts/FontToolkit+UIFont.swift index 306bbfdc..183421e4 100644 --- a/Sources/MisticaCommon/Fonts/FontToolkit+UIFont.swift +++ b/Sources/MisticaCommon/Fonts/FontToolkit+UIFont.swift @@ -58,6 +58,13 @@ public extension UIFont { ) } + static func textTitle3(constrainedToPreferredSize: UIContentSizeCategory? = nil) -> UIFont { + FontStyle.textTitle3.preferredFont( + weight: MisticaConfig.currentFontWeights.title3.systemUIFontWeight, + constrainedToPreferredSize: constrainedToPreferredSize + ) + } + static func preferredFont(for fontStyle: FontStyle, weight: UIFont.Weight, constrainedToPreferredSize constrainedPreferredSize: UIContentSizeCategory) -> UIFont { fontStyle.preferredFont(weight: weight, constrainedToPreferredSize: constrainedPreferredSize) } diff --git a/Tests/MisticaTests/UI/TitleHeaderFooterViewTests.swift b/Tests/MisticaTests/UI/TitleHeaderFooterViewTests.swift index c0f1ead3..a22b50ff 100644 --- a/Tests/MisticaTests/UI/TitleHeaderFooterViewTests.swift +++ b/Tests/MisticaTests/UI/TitleHeaderFooterViewTests.swift @@ -73,6 +73,78 @@ final class TitleHeaderFooterViewTests: XCTestCase { viewBuilder: makeSectionTitle(title: "This is a very long test text to check multiline", linkTitle: "Link text", style: .title2) ) } + + func testTitle3() { + assertSnapshot( + for: [.vivoNew, .movistar], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "Title text", style: .title3) + ) + } + + func testTitle3WithLink() { + assertSnapshot( + for: [.vivoNew, .movistar], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "Title text", linkTitle: "Link text", style: .title3) + ) + } + + func testTitle3Multiline() { + assertSnapshot( + for: [.vivoNew, .movistar], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "This is a very long test text to check multiline", style: .title3) + ) + } + + func testTitle3MultilineAndLink() { + assertSnapshot( + for: [.vivoNew, .movistar], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "This is a very long test text to check multiline", linkTitle: "Link text", style: .title3) + ) + } + + func testTitle4() { + assertSnapshot( + for: [.vivoNew], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "Title text", style: .title4) + ) + } + + func testTitle4WithLink() { + assertSnapshot( + for: [.vivoNew], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "Title text", linkTitle: "Link text", style: .title4) + ) + } + + func testTitle4Multiline() { + assertSnapshot( + for: [.vivoNew], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "This is a very long test text to check multiline", style: .title4) + ) + } + + func testTitle4MultilineAndLink() { + assertSnapshot( + for: [.vivoNew], + and: [.light], + as: .image(on: .iPhoneSe), + viewBuilder: makeSectionTitle(title: "This is a very long test text to check multiline", linkTitle: "Link text", style: .title4) + ) + } } private extension TitleHeaderFooterViewTests { diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-dark-style.png index 3d667067..c6c702b4 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-style.png index 8c1362b8..e6737181 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-blau-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-dark-style.png index d12d1b3c..be16abb4 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-style.png index ff968dd0..67148d9e 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-movistar-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-dark-style.png index 03afbfb2..3e3ebf9a 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-style.png index 67521ced..bc179ae0 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-dark-style.png index d15e56b8..61f841a5 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-style.png index e4affdd6..a1f98e9a 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-o2New-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-dark-style.png index 5a4539f7..6024ddd6 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-style.png index aadefd0f..d5fc72b0 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-telefonica-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-dark-style.png index 980595a5..a82c7cae 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-style.png index db097c0b..b2905a43 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-tu-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-dark-style.png index 03afbfb2..3e3ebf9a 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-style.png index 8c1362b8..e6737181 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivo-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-dark-style.png index 2773584f..5ce383af 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-style.png index fce9ec33..66207186 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2.with-vivoNew-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-dark-style.png index f17bb9a6..9ec17cce 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-style.png index ff3f5e09..83f3c422 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-blau-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-dark-style.png index 84ce107f..37a441cf 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-style.png index d61d5bd9..05be9d2d 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-movistar-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-dark-style.png index 2904c8f5..352938c3 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-style.png index 0498b947..3bf12506 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-dark-style.png index d7c96464..af78a6f5 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-style.png index 6ccf4082..dc873ce5 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-o2New-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-dark-style.png index 173beb08..263cff75 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-style.png index 7826ebb4..b8ff8535 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-telefonica-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-dark-style.png index 31524502..75d5122e 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-style.png index 60e6ee62..a010f09f 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-tu-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-dark-style.png index 2904c8f5..352938c3 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-style.png index ff3f5e09..83f3c422 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivo-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-dark-style.png index 6c4bb957..e12990f0 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-style.png index 1c25fced..c99fc9da 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2Multiline.with-vivoNew-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-dark-style.png index e4082029..28729307 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-style.png index 89275d03..5149dd2d 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-blau-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-dark-style.png index 9bcb24e1..a7637cb4 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-style.png index 7fd3dc2d..d500bca9 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-movistar-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-dark-style.png index 2cfb0fc5..12325329 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-style.png index 96c01bce..0f426fb1 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-dark-style.png index fcc04f94..b4c4266c 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-style.png index e604c812..103a83ef 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-o2New-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-dark-style.png index 348dfa8c..d4c305ad 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-style.png index 5b1c75e6..5a33123e 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-telefonica-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-dark-style.png index 157dd58a..1820161a 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-style.png index bd63f055..bdef7393 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-tu-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-dark-style.png index 706358f8..f9c1bfea 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-style.png index 52b3d93e..ec054e14 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivo-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-dark-style.png index 6e36abc6..dd4ecee7 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-style.png index 92464867..d35fca0b 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2MultilineAndLink.with-vivoNew-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-dark-style.png index f8bcbdfa..8449c793 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-style.png index d1b2f102..0e59ca7d 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-blau-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-dark-style.png index b6c98569..bc7e74e6 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-style.png index 3440d860..4e8c09c9 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-movistar-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-dark-style.png index 7a015941..e20a2475 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-style.png index 20672f1c..24133a45 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-dark-style.png index 8ebeabb6..cda331b0 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-style.png index 4602fa9b..df53bdf1 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-o2New-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-dark-style.png index ee1b296f..4a83049b 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-style.png index 44f6919a..11b3a999 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-telefonica-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-dark-style.png index 928ea243..117123f3 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-style.png index d35ac095..a623f7a5 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-tu-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-dark-style.png index 043fea9b..b3542946 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-style.png index c4df2d9f..4bb1133f 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivo-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-dark-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-dark-style.png index f7c689db..d1042415 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-dark-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-dark-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-style.png index 3f80e41a..86b01243 100644 Binary files a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-style.png and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle2WithLink.with-vivoNew-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3.with-movistar-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3.with-movistar-light-style.png new file mode 100644 index 00000000..ff968dd0 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3.with-movistar-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3.with-vivoNew-light-style.png new file mode 100644 index 00000000..3c140bb6 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3Multiline.with-movistar-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3Multiline.with-movistar-light-style.png new file mode 100644 index 00000000..d61d5bd9 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3Multiline.with-movistar-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3Multiline.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3Multiline.with-vivoNew-light-style.png new file mode 100644 index 00000000..8dc77aac Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3Multiline.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3MultilineAndLink.with-movistar-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3MultilineAndLink.with-movistar-light-style.png new file mode 100644 index 00000000..7fd3dc2d Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3MultilineAndLink.with-movistar-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3MultilineAndLink.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3MultilineAndLink.with-vivoNew-light-style.png new file mode 100644 index 00000000..f99c95d3 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3MultilineAndLink.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3WithLink.with-movistar-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3WithLink.with-movistar-light-style.png new file mode 100644 index 00000000..3440d860 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3WithLink.with-movistar-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3WithLink.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3WithLink.with-vivoNew-light-style.png new file mode 100644 index 00000000..44360f9f Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle3WithLink.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4.with-vivoNew-light-style.png new file mode 100644 index 00000000..aaae6db7 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4Multiline.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4Multiline.with-vivoNew-light-style.png new file mode 100644 index 00000000..2e5e323a Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4Multiline.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4MultilineAndLink.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4MultilineAndLink.with-vivoNew-light-style.png new file mode 100644 index 00000000..30bb8254 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4MultilineAndLink.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4WithLink.with-vivoNew-light-style.png b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4WithLink.with-vivoNew-light-style.png new file mode 100644 index 00000000..99eeed71 Binary files /dev/null and b/Tests/MisticaTests/UI/__Snapshots__/TitleHeaderFooterViewTests/testTitle4WithLink.with-vivoNew-light-style.png differ diff --git a/Tests/MisticaTests/Utils/TestHelpers.swift b/Tests/MisticaTests/Utils/TestHelpers.swift index 37a5840d..c3c2dc0b 100644 --- a/Tests/MisticaTests/Utils/TestHelpers.swift +++ b/Tests/MisticaTests/Utils/TestHelpers.swift @@ -55,9 +55,51 @@ func assertSnapshotForAllBrandsAndStyles( } } +func assertSnapshot( + for brands: [BrandStyle] = BrandStyle.allCases, + and styles: [UIUserInterfaceStyle] = [.light, .dark], + as snapshotting: Snapshotting, + file: StaticString = #file, + testName: String = #function, + line: UInt = #line, + viewBuilder: @autoclosure () -> View +) { + for brand in brands { + MisticaConfig.brandStyle = brand + + for style in styles { + var view = viewBuilder() + view.overrideUserInterfaceStyle = style + assertSnapshot( + matching: view, + as: snapshotting, + named: "with-\(brand)-\(style.testSuffix)-style", + file: file, + testName: testName, + line: line + ) + } + } +} + protocol UserInterfaceStyling { var overrideUserInterfaceStyle: UIUserInterfaceStyle { get set } } extension UIView: UserInterfaceStyling {} extension UIViewController: UserInterfaceStyling {} + +private extension UIUserInterfaceStyle { + var testSuffix: String { + switch self { + case .unspecified: + "unspecified" + case .light: + "light" + case .dark: + "dark" + @unknown default: + "unknown" + } + } +}