Manos Chorianopoulos

fix questionnaireButton ui at walletVC

......@@ -175,6 +175,7 @@ extension UIView {
gradient.colors = colours.map { $0.cgColor }
gradient.locations = locations
gradient.cornerRadius = cornerRadius
gradient.name = "linearGradientLayer"
self.layer.insertSublayer(gradient, at: 0)
}
......@@ -185,6 +186,7 @@ extension UIView {
gradient.startPoint = orientation.startPoint
gradient.endPoint = orientation.endPoint
gradient.cornerRadius = cornerRadius
gradient.name = "linearGradientLayer"
self.layer.insertSublayer(gradient, at: 0)
}
}
......
......@@ -218,6 +218,12 @@ import SwiftEventBus
questionnaireButton.layer.shadowRadius = 0.0
questionnaireButton.layer.masksToBounds = false
} else {
for layer in (questionnaireButton.layer.sublayers ?? []) {
if(layer.name == "linearGradientLayer"){
layer.removeFromSuperlayer()
}
}
questionnaireButton.layer.shadowOpacity = 0.0;
questionnaireButton.setTitle("+Προτιμήσεις", for: .normal)
questionnaireButton.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .semibold)
questionnaireButton.setTitleColor(UIColor(red: 0.31, green: 0.62, blue: 0.18, alpha: 1.00), for: .normal)
......