Manos Chorianopoulos

new ui fixes

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -25,6 +25,7 @@ import UIKit
parentView.layer.borderWidth = 1.0
parentView.layer.borderColor = UIColor(rgb: 0xCCCCCC).cgColor
parentView.layer.cornerRadius = 8.0
parentView.clipsToBounds = true
discountView.layer.cornerRadius = 34.0
......@@ -42,7 +43,7 @@ import UIKit
: ""
discountLabel.text = "\(data.discount)\(discountSymbol)"
discountLabel.font = UIFont(name: "PingLCG-Bold", size: 18)
discountLabel.font = UIFont(name: "PingLCG-Bold", size: 17)
discountLabel.textColor = UIColor(rgb: 0xF2F2F2)
discountView.backgroundColor = UIColor(rgb: data.color)
......
......@@ -77,25 +77,25 @@
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VZh-nd-i9h" userLabel="Bottom View">
<rect key="frame" x="14" y="64" width="254" height="101"/>
<rect key="frame" x="0.0" y="64" width="268" height="101"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0lx-ek-fAp">
<rect key="frame" x="11" y="8" width="148" height="82"/>
<rect key="frame" x="11" y="8" width="162" height="82"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JDi-AY-Oai">
<rect key="frame" x="0.0" y="0.0" width="148" height="21"/>
<rect key="frame" x="0.0" y="0.0" width="162" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aNz-HU-dYm">
<rect key="frame" x="0.0" y="23" width="148" height="20.333333333333329"/>
<rect key="frame" x="0.0" y="23" width="162" height="20.333333333333329"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bIt-Gd-bbg">
<rect key="frame" x="0.0" y="61" width="148" height="21"/>
<rect key="frame" x="0.0" y="61" width="162" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
......@@ -115,7 +115,7 @@
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="3me-Qd-ALg">
<rect key="frame" x="177" y="13" width="59" height="59"/>
<rect key="frame" x="191" y="13" width="59" height="59"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="59" id="Ij1-x5-I27"/>
......@@ -140,7 +140,7 @@
<constraint firstAttribute="bottom" secondItem="VZh-nd-i9h" secondAttribute="bottom" id="0Kf-vE-Wru"/>
<constraint firstAttribute="trailing" secondItem="nG0-KL-IyC" secondAttribute="trailing" id="3PK-aE-vjr"/>
<constraint firstItem="VZh-nd-i9h" firstAttribute="top" secondItem="nG0-KL-IyC" secondAttribute="bottom" id="7xf-0u-A8S"/>
<constraint firstItem="VZh-nd-i9h" firstAttribute="leading" secondItem="5If-VV-K9F" secondAttribute="leading" constant="14" id="P5a-2H-UoS"/>
<constraint firstItem="VZh-nd-i9h" firstAttribute="leading" secondItem="5If-VV-K9F" secondAttribute="leading" id="P5a-2H-UoS"/>
<constraint firstAttribute="trailing" secondItem="VZh-nd-i9h" secondAttribute="trailing" id="dzM-oX-xd7"/>
<constraint firstItem="nG0-KL-IyC" firstAttribute="top" secondItem="5If-VV-K9F" secondAttribute="top" id="l7a-R3-Wjx"/>
<constraint firstItem="nG0-KL-IyC" firstAttribute="leading" secondItem="5If-VV-K9F" secondAttribute="leading" id="vz8-lp-dsA"/>
......
......@@ -48,13 +48,13 @@ import UIKit
// Configure collection view layout
if let layout = collectionView.collectionViewLayout as? UICollectionViewFlowLayout {
layout.scrollDirection = .horizontal
layout.minimumLineSpacing = 0
layout.minimumLineSpacing = 7
layout.minimumInteritemSpacing = 0
layout.sectionInset = UIEdgeInsets.zero
layout.sectionInset = UIEdgeInsets(top: 0, left: 24, bottom: 0, right: 24)
}
// Enable paging for smooth banner scrolling
collectionView.isPagingEnabled = true
// collectionView.isPagingEnabled = true
collectionView.showsHorizontalScrollIndicator = false
// Set delegates
......@@ -130,7 +130,6 @@ extension MyRewardsOffersScrollTableViewCell: UICollectionViewDataSource, UICol
// Cell Margin
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
return UIEdgeInsets.zero
// UIEdgeInsets(top: 0, left: 7, bottom: 0, right: 0)
return UIEdgeInsets(top: 0, left: 24, bottom: 0, right: 24)
}
}
......