From 66e4aae166f4efa17ab10651134a8e7465ad75d4 Mon Sep 17 00:00:00 2001 From: Jose Miguel Brocal Gallego Date: Fri, 29 Jan 2021 13:32:24 +0100 Subject: [PATCH] fix(HighlightedCard,MediaCard,MediaCard,Stepper): fix border color by replacing "divider" by "border" of the color palette and set the border size to 1 px --- Mistica/Source/Components/Cards/DataCard.swift | 2 +- Mistica/Source/Components/Cards/MediaCard.swift | 2 +- .../Source/Components/HighlightedCard/HighlightedCard.swift | 2 +- Mistica/Source/Utils/Extensions/UIView+Utils.swift | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Mistica/Source/Components/Cards/DataCard.swift b/Mistica/Source/Components/Cards/DataCard.swift index 9eb2334a5..6be655121 100644 --- a/Mistica/Source/Components/Cards/DataCard.swift +++ b/Mistica/Source/Components/Cards/DataCard.swift @@ -181,7 +181,7 @@ private extension DataCard { cardBaseView.contentView.descriptionLabel.numberOfLines = 0 cardBaseView.contentView.descriptionLabel.topSpacing = 8 - addBorder() + addBorder(borderColor: .border) } func configure(with configuration: DataCardConfiguration) { diff --git a/Mistica/Source/Components/Cards/MediaCard.swift b/Mistica/Source/Components/Cards/MediaCard.swift index 9df956067..dc9826003 100644 --- a/Mistica/Source/Components/Cards/MediaCard.swift +++ b/Mistica/Source/Components/Cards/MediaCard.swift @@ -156,7 +156,7 @@ private extension MediaCard { richMediaContainerView.clipsToBounds = true - addBorder() + addBorder(borderColor: .border) } func configure(with configuration: MediaCardConfiguration) { diff --git a/Mistica/Source/Components/HighlightedCard/HighlightedCard.swift b/Mistica/Source/Components/HighlightedCard/HighlightedCard.swift index 045454d7b..804849c06 100644 --- a/Mistica/Source/Components/HighlightedCard/HighlightedCard.swift +++ b/Mistica/Source/Components/HighlightedCard/HighlightedCard.swift @@ -374,7 +374,7 @@ private extension HighlightedCard { closeButton.clipsToBounds = true closeButton.isHidden = true - addBorder() + addBorder(borderColor: .border) makeRounded(cornerRadius: Constants.cornerRadius) } diff --git a/Mistica/Source/Utils/Extensions/UIView+Utils.swift b/Mistica/Source/Utils/Extensions/UIView+Utils.swift index ea1736e6c..b5c3ca0e1 100644 --- a/Mistica/Source/Utils/Extensions/UIView+Utils.swift +++ b/Mistica/Source/Utils/Extensions/UIView+Utils.swift @@ -233,9 +233,9 @@ extension UIView { clipsToBounds = true } - func addBorder(borderColor: UIColor = UIColor.divider) { + func addBorder(borderColor: UIColor) { layer.borderColor = borderColor.cgColor - layer.borderWidth = 1.5 + layer.borderWidth = 1 } func removeBorder() {