Manos Chorianopoulos

MerchantTableViewCell ui fixes

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -6415,10 +6415,11 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TQn-b5-U6q">
<rect key="frame" x="18" y="0.0" width="378" height="56"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Ldh-p8-Z1j">
<rect key="frame" x="30" y="10" width="129" height="36"/>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Ldh-p8-Z1j">
<rect key="frame" x="25" y="10" width="160" height="36"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="160" id="7YN-MD-1zb"/>
<constraint firstAttribute="height" constant="36" id="p6j-w9-UR3"/>
</constraints>
</imageView>
......@@ -6468,11 +6469,10 @@
</subviews>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="Ldh-p8-Z1j" firstAttribute="leading" secondItem="TQn-b5-U6q" secondAttribute="leading" constant="30" id="2aw-gT-BVN"/>
<constraint firstItem="Ldh-p8-Z1j" firstAttribute="leading" secondItem="TQn-b5-U6q" secondAttribute="leading" constant="25" id="2aw-gT-BVN"/>
<constraint firstAttribute="height" constant="56" id="Xyd-6p-fo2"/>
<constraint firstAttribute="trailing" secondItem="4sH-ua-n19" secondAttribute="trailing" constant="9" id="lbe-QE-jiR"/>
<constraint firstItem="4sH-ua-n19" firstAttribute="centerY" secondItem="TQn-b5-U6q" secondAttribute="centerY" id="wGb-H6-wLJ"/>
<constraint firstItem="4sH-ua-n19" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Ldh-p8-Z1j" secondAttribute="trailing" constant="40" id="yXs-PY-sxL"/>
<constraint firstItem="Ldh-p8-Z1j" firstAttribute="centerY" secondItem="TQn-b5-U6q" secondAttribute="centerY" id="zmN-GO-87t"/>
</constraints>
</view>
......
......@@ -76,8 +76,11 @@ class MerchantTableViewCell: UITableViewCell {
func configureCell(shop: swiftApi.ShopAvailabilityItemModel, buttonTitle: String, iconImage: String?, showEshops: Bool?) {
if (showEshops == true) {
// TODO: add static image
// self.merchantImage.image = image
if (shop._merchant_uuid == "ab") {
self.merchantImage.image = UIImage(named: "eshop_ab", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
} else if (shop._merchant_uuid == "masoutis") {
self.merchantImage.image = UIImage(named: "eshop_masoutis", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
}
} else {
for merchant in merchantList {
......