Manos Chorianopoulos

header fixes

......@@ -9,6 +9,7 @@ import UIKit
@objc public class LoyaltyViewController: UIViewController {
@IBOutlet weak var headerView: UIView!
@IBOutlet weak var gradientImage: UIImageView!
@IBOutlet weak var closeImage: UIImageView!
@IBOutlet weak var logoImage: UIImageView!
@IBOutlet weak var filtersView: UIView!
......@@ -23,8 +24,9 @@ import UIKit
super.viewDidLoad()
headerView.applyGradient(colours: [UIColor(rgb: 0x081748), UIColor(rgb: 0x204EAC)], gradient: GradientOrientation.horizontal, cornerRadius: 0.0)
// headerView.applyGradient(colours: [UIColor(rgb: 0x081748), UIColor(rgb: 0x204EAC)], gradient: GradientOrientation.horizontal, cornerRadius: 0.0)
gradientImage.image = UIImage(named: "header_gradient", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
closeImage.image = UIImage(named: "close_btn_white", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
logoImage.image = UIImage(named: "epistrofi_logo", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
......
......@@ -4003,6 +4003,9 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Iq3-R0-fBz" userLabel="Header View">
<rect key="frame" x="0.0" y="0.0" width="414" height="176"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="XUl-yS-U0R">
<rect key="frame" x="0.0" y="0.0" width="414" height="176"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="b5d-hX-vcb">
<rect key="frame" x="379" y="55" width="15" height="15"/>
<constraints>
......@@ -4018,13 +4021,18 @@
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="b5d-hX-vcb" secondAttribute="trailing" constant="20" id="7b4-MW-wD8"/>
<constraint firstAttribute="bottom" secondItem="GZK-rw-pZV" secondAttribute="bottom" constant="40" id="9Rf-JX-IKb"/>
<constraint firstItem="GZK-rw-pZV" firstAttribute="leading" secondItem="Iq3-R0-fBz" secondAttribute="leading" constant="20" id="BMr-C7-DIL"/>
<constraint firstAttribute="height" constant="176" id="BaJ-Gm-xbU"/>
<constraint firstItem="XUl-yS-U0R" firstAttribute="top" secondItem="Iq3-R0-fBz" secondAttribute="top" id="Dy3-jg-UMr"/>
<constraint firstAttribute="trailing" secondItem="XUl-yS-U0R" secondAttribute="trailing" id="NBA-Xp-nka"/>
<constraint firstItem="GZK-rw-pZV" firstAttribute="top" secondItem="b5d-hX-vcb" secondAttribute="bottom" constant="15" id="U6G-sr-YQ8"/>
<constraint firstItem="b5d-hX-vcb" firstAttribute="top" secondItem="Iq3-R0-fBz" secondAttribute="top" constant="55" id="eCY-aR-D9c"/>
<constraint firstAttribute="bottom" secondItem="XUl-yS-U0R" secondAttribute="bottom" id="qsE-Bq-90b"/>
<constraint firstItem="XUl-yS-U0R" firstAttribute="leading" secondItem="Iq3-R0-fBz" secondAttribute="leading" id="zJ6-nU-hko"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZDd-1H-T7x" userLabel="Filters View">
......@@ -4204,6 +4212,7 @@
<outlet property="collectionView" destination="3Ff-i2-KRi" id="7GZ-4D-yqt"/>
<outlet property="containerView" destination="JYn-ad-sj7" id="hpH-B5-4uH"/>
<outlet property="filtersView" destination="ZDd-1H-T7x" id="HUd-Ox-bcV"/>
<outlet property="gradientImage" destination="XUl-yS-U0R" id="CDt-DC-WTx"/>
<outlet property="headerView" destination="Iq3-R0-fBz" id="E4T-bn-yYD"/>
<outlet property="logoImage" destination="GZK-rw-pZV" id="qwb-ae-QFc"/>
</connections>
......