Manos Chorianopoulos

add MarketPassViewController

......@@ -254,9 +254,123 @@
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oun-2v-J2R">
<rect key="frame" x="0.0" y="5" width="414" height="847"/>
<subviews>
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KGv-uL-Ge0">
<view contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KGv-uL-Ge0" userLabel="ScrollContentView">
<rect key="frame" x="0.0" y="0.0" width="414" height="852"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fHd-ff-Sbn">
<rect key="frame" x="17" y="23" width="380" height="513.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SUPERMARKET DEALS CARD" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ffU-yH-vAL">
<rect key="frame" x="26" y="26" width="328" height="27"/>
<fontDescription key="fontDescription" name="BTCosmo-Bold" family="BTCosmo" pointSize="23"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Χρησιμοποίησε τον κωδικό σου και κέρδισε έκπτωση στις αγορές σου!" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FCo-jy-FmB">
<rect key="frame" x="26" y="69" width="328" height="42"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="74w-a6-uZN">
<rect key="frame" x="26" y="154" width="328" height="157.5"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="cBT-1y-9Lf">
<rect key="frame" x="24" y="5" width="280" height="110"/>
<constraints>
<constraint firstAttribute="height" constant="110" id="wRW-6H-VVs"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="123456789101112" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="t9R-7Y-Vtc">
<rect key="frame" x="24" y="120" width="280" height="23.5"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="19"/>
<color key="textColor" red="0.12941176470588234" green="0.12941176470588234" blue="0.12941176470588234" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="t9R-7Y-Vtc" secondAttribute="bottom" constant="14" id="7Gs-Xt-tEk"/>
<constraint firstItem="t9R-7Y-Vtc" firstAttribute="leading" secondItem="74w-a6-uZN" secondAttribute="leading" constant="24" id="EMV-Jb-qHB"/>
<constraint firstItem="cBT-1y-9Lf" firstAttribute="leading" secondItem="74w-a6-uZN" secondAttribute="leading" constant="24" id="H1v-Jp-swv"/>
<constraint firstItem="cBT-1y-9Lf" firstAttribute="top" secondItem="74w-a6-uZN" secondAttribute="top" constant="5" id="HNu-o6-iVE"/>
<constraint firstAttribute="trailing" secondItem="t9R-7Y-Vtc" secondAttribute="trailing" constant="24" id="Xaf-UD-VtU"/>
<constraint firstAttribute="trailing" secondItem="cBT-1y-9Lf" secondAttribute="trailing" constant="24" id="Y9j-dK-7vP"/>
<constraint firstItem="t9R-7Y-Vtc" firstAttribute="top" secondItem="cBT-1y-9Lf" secondAttribute="bottom" constant="5" id="ikJ-FV-oka"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HCl-ht-lub" userLabel="CouponsValueView">
<rect key="frame" x="0.0" y="348.5" width="380" height="53"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Έχεις κουπόνια συνολικής αξίας 30€" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Zk5-FL-kMS">
<rect key="frame" x="26" y="16" width="328" height="21"/>
<fontDescription key="fontDescription" name="PeridotPE-Regular" family="Peridot PE" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.0" green="0.42745098039215684" blue="0.14901960784313725" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="Zk5-FL-kMS" secondAttribute="trailing" constant="26" id="8gj-ca-QKO"/>
<constraint firstAttribute="bottom" secondItem="Zk5-FL-kMS" secondAttribute="bottom" constant="16" id="OLu-Uk-BON"/>
<constraint firstItem="Zk5-FL-kMS" firstAttribute="leading" secondItem="HCl-ht-lub" secondAttribute="leading" constant="26" id="Z7D-V4-kqB"/>
<constraint firstItem="Zk5-FL-kMS" firstAttribute="top" secondItem="HCl-ht-lub" secondAttribute="top" constant="16" id="v5u-PM-u2n"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="O1Z-nB-jp1">
<rect key="frame" x="0.0" y="401.5" width="380" height="112"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="e1L-dV-0yr">
<rect key="frame" x="220" y="32" width="148" height="48"/>
<constraints>
<constraint firstAttribute="width" constant="148" id="NeR-8S-lKC"/>
<constraint firstAttribute="height" constant="48" id="gGB-C6-ohH"/>
</constraints>
<fontDescription key="fontDescription" name="PeridotPE-SBold" family="Peridot PE" pointSize="16"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="Δες στο χάρτη">
<color key="titleColor" red="0.0" green="0.42745098039215684" blue="0.14901960784313725" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="mapButtonAction:" destination="Bfc-KW-c8g" eventType="touchUpInside" id="LTM-Hq-t5C"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="112" id="IBa-kj-ffe"/>
<constraint firstAttribute="trailing" secondItem="e1L-dV-0yr" secondAttribute="trailing" constant="12" id="P7n-g7-oYc"/>
<constraint firstItem="e1L-dV-0yr" firstAttribute="centerY" secondItem="O1Z-nB-jp1" secondAttribute="centerY" id="nw3-AE-gGT"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="0.21176470588235294" green="0.70196078431372544" blue="0.16862745098039217" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="74w-a6-uZN" secondAttribute="trailing" constant="26" id="Gda-fs-RTg"/>
<constraint firstAttribute="trailing" secondItem="HCl-ht-lub" secondAttribute="trailing" id="J53-eS-6Fr"/>
<constraint firstItem="HCl-ht-lub" firstAttribute="leading" secondItem="fHd-ff-Sbn" secondAttribute="leading" id="V74-1z-3qe"/>
<constraint firstAttribute="bottom" secondItem="O1Z-nB-jp1" secondAttribute="bottom" id="VQE-kR-d20"/>
<constraint firstItem="74w-a6-uZN" firstAttribute="top" secondItem="FCo-jy-FmB" secondAttribute="bottom" constant="43" id="Y4U-h7-vhS"/>
<constraint firstAttribute="trailing" secondItem="O1Z-nB-jp1" secondAttribute="trailing" id="a7K-Cs-70c"/>
<constraint firstAttribute="trailing" secondItem="FCo-jy-FmB" secondAttribute="trailing" constant="26" id="cmO-N9-ava"/>
<constraint firstItem="74w-a6-uZN" firstAttribute="leading" secondItem="fHd-ff-Sbn" secondAttribute="leading" constant="26" id="dgM-id-huG"/>
<constraint firstItem="FCo-jy-FmB" firstAttribute="leading" secondItem="fHd-ff-Sbn" secondAttribute="leading" constant="26" id="dtM-80-fIm"/>
<constraint firstItem="ffU-yH-vAL" firstAttribute="top" secondItem="fHd-ff-Sbn" secondAttribute="top" constant="26" id="h8l-cx-6Dh"/>
<constraint firstItem="ffU-yH-vAL" firstAttribute="leading" secondItem="fHd-ff-Sbn" secondAttribute="leading" constant="26" id="m6I-Tr-IxO"/>
<constraint firstItem="O1Z-nB-jp1" firstAttribute="top" secondItem="HCl-ht-lub" secondAttribute="bottom" id="mSE-RN-mKo"/>
<constraint firstItem="HCl-ht-lub" firstAttribute="top" secondItem="74w-a6-uZN" secondAttribute="bottom" constant="37" id="nH4-Uc-bF8"/>
<constraint firstAttribute="trailing" secondItem="ffU-yH-vAL" secondAttribute="trailing" constant="26" id="o7F-J6-nRj"/>
<constraint firstItem="FCo-jy-FmB" firstAttribute="top" secondItem="ffU-yH-vAL" secondAttribute="bottom" constant="16" id="r7m-We-OPk"/>
<constraint firstItem="O1Z-nB-jp1" firstAttribute="leading" secondItem="fHd-ff-Sbn" secondAttribute="leading" id="rr3-UJ-IZH"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="fHd-ff-Sbn" firstAttribute="top" secondItem="KGv-uL-Ge0" secondAttribute="top" constant="23" id="fmk-oC-KTp"/>
<constraint firstItem="fHd-ff-Sbn" firstAttribute="leading" secondItem="KGv-uL-Ge0" secondAttribute="leading" constant="17" id="q32-2Z-teN"/>
<constraint firstAttribute="trailing" secondItem="fHd-ff-Sbn" secondAttribute="trailing" constant="17" id="twj-up-7fO"/>
</constraints>
</view>
</subviews>
<constraints>
......@@ -270,7 +384,7 @@
<viewLayoutGuide key="frameLayoutGuide" id="Kjy-EG-FD1"/>
</scrollView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.95294117647058818" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="oun-2v-J2R" secondAttribute="trailing" id="DQh-TZ-hwy"/>
<constraint firstAttribute="bottom" secondItem="oun-2v-J2R" secondAttribute="bottom" id="PDI-hS-9rn"/>
......@@ -289,6 +403,18 @@
<constraint firstItem="ksI-Hs-G6N" firstAttribute="top" secondItem="KM1-nK-03C" secondAttribute="top" id="lkT-fB-i8c"/>
</constraints>
</view>
<connections>
<outlet property="barcodeImage" destination="cBT-1y-9Lf" id="J4q-vw-mVA"/>
<outlet property="barcodeImageHeight" destination="wRW-6H-VVs" id="i8x-Zn-qwi"/>
<outlet property="barcodeLabel" destination="t9R-7Y-Vtc" id="B7d-uM-D7O"/>
<outlet property="barcodeView" destination="74w-a6-uZN" id="O6D-r9-BQX"/>
<outlet property="couponsValueLabel" destination="Zk5-FL-kMS" id="Xbr-Ue-SGh"/>
<outlet property="mapButton" destination="e1L-dV-0yr" id="JuF-oZ-Ikm"/>
<outlet property="passContainerView" destination="fHd-ff-Sbn" id="bDj-nf-kx4"/>
<outlet property="passSubtitleLabel" destination="FCo-jy-FmB" id="r0N-jp-bz0"/>
<outlet property="passTitleLabel" destination="ffU-yH-vAL" id="ScX-Ws-3dT"/>
<outlet property="smLogosView" destination="O1Z-nB-jp1" id="2Kx-7S-VYb"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="L3t-gP-tua" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
......
......@@ -10,6 +10,18 @@ import RSBarcodes_Swift
import AVFoundation
@objc public class MarketPassViewController: UIViewController {
@IBOutlet weak var passContainerView: UIView!
@IBOutlet weak var passTitleLabel: UILabel!
@IBOutlet weak var passSubtitleLabel: UILabel!
@IBOutlet weak var barcodeView: UIView!
@IBOutlet weak var barcodeImage: UIImageView!
@IBOutlet weak var barcodeImageHeight: NSLayoutConstraint!
@IBOutlet weak var barcodeLabel: UILabel!
@IBOutlet weak var couponsValueLabel: UILabel!
@IBOutlet weak var smLogosView: UIView!
@IBOutlet weak var mapButton: UIButton!
let uiscreen: CGRect = UIScreen.main.bounds
public override func viewDidLoad() {
super.viewDidLoad()
......@@ -21,8 +33,13 @@ import AVFoundation
// Setup the info button with an action
setNavBarRightInfoButton() {
// This closure is the action that will be executed when the info button is tapped
// self.presentInfoPopup()
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "MarketPassInfoViewController") as! SwiftWarplyFramework.MarketPassInfoViewController
self.navigationController?.pushViewController(vc, animated: true)
}
setupUI()
}
public override func viewWillAppear(_ animated: Bool) {
......@@ -33,4 +50,151 @@ import AVFoundation
self.navigationController?.hideHairline()
}
// MARK: - Functions
func setupUI() {
passContainerView.backgroundColor = UIColor(rgb: 0x36B32B)
passContainerView.layer.cornerRadius = 16.0
// Add shadow
passContainerView.layer.shadowColor = UIColor(red: 0.00, green: 0.00, blue: 0.00, alpha: 0.31).cgColor
passContainerView.layer.shadowOffset = CGSize(width: 0.0, height: 1.0)
passContainerView.layer.shadowOpacity = 1.0
passContainerView.layer.shadowRadius = 3.0
passTitleLabel.text = "SUPERMARKET DEALS CARD"
// passTitleLabel.font = UIFont(name: "BTCosmo-Bold", size: 23)
passTitleLabel.font = UIFont(name: "BTCosmo-Bold", size: 22)
passTitleLabel.textColor = .white
passSubtitleLabel.text = "Χρησιμοποίησε τον κωδικό σου και κέρδισε έκπτωση στις αγορές σου!"
passSubtitleLabel.font = UIFont(name: "PeridotPE-Regular", size: 17.0)
passSubtitleLabel.textColor = .white
barcodeView.backgroundColor = .white
barcodeView.layer.cornerRadius = 16.0
barcodeView.layer.borderWidth = 2
barcodeView.layer.borderColor = UIColor(rgb: 0xDADDE4).cgColor
//TODO: FIX
// let barcodeString = constructBarcode(coupon: coupon) ?? ""
// let barcodeString = coupon?._barcode ?? ""
let barcodeString = "4006381333931"
barcodeLabel.text = barcodeString
barcodeLabel.font = UIFont(name: "PeridotPE-Regular", size: 19.0)
barcodeLabel.textColor = UIColor(rgb: 0x212121)
if let barcodeUIImage = RSUnifiedCodeGenerator.shared.generateCode(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue, targetSize: CGSize(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.12)) {
// if let barcodeUIImage = RSUnifiedCodeGenerator.shared.generateCode(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue, targetSize: CGSize(width: 110, height: 83)) {
barcodeImage.image = barcodeUIImage
barcodeImageHeight.constant = self.uiscreen.height * 0.12
// barcodeImageHeight.constant = 83
} else {
barcodeImageHeight.constant = 0
}
// TODO: FIX
let couponsValueString = "30"
let attrRegular = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Regular", size: 17) ?? UIFont.systemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let attrBold = [NSAttributedString.Key.font : UIFont(name: "PeridotPE-Bold", size: 17) ?? UIFont.boldSystemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white]
let couponsValueNormalText1 = "Έχεις κουπόνια συνολικής αξίας "
let couponsValueBoldText = couponsValueString + "€"
let couponsValueAttributedString = NSMutableAttributedString(string:couponsValueNormalText1, attributes:attrRegular)
let couponsValueBoldString = NSMutableAttributedString(string: couponsValueBoldText, attributes:attrBold)
couponsValueAttributedString.append(couponsValueBoldString)
couponsValueLabel.attributedText = couponsValueAttributedString
mapButton.titleLabel?.font = UIFont(name: "PeridotPE-SBold", size: 16)
mapButton.setTitle("Δες στο χάρτη", for: .normal)
mapButton.setTitleColor(UIColor(rgb: 0x006D26), for: .normal)
mapButton.layer.cornerRadius = 10.0
mapButton.frame = CGRect(x: 0.0, y: 0.0, width: 148, height: 48)
// mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 55)
// mapButton.contentEdgeInsets = UIEdgeInsets(top: 0, left: 25, bottom: 0, right: 25)
mapButton.backgroundColor = .clear
mapButton.layer.borderWidth = 2
mapButton.layer.borderColor = UIColor(rgb: 0x006D26).cgColor
smLogosView.layer.cornerRadius = 16.0
smLogosView.layer.maskedCorners = [ .layerMinXMaxYCorner, .layerMaxXMaxYCorner] // Bottom left, right corner radius
// TODO: FIX - Replace with dynamic images
let imageNames = ["active_code_logo_2", "active_code_logo_2", "active_code_logo_2"]
// let images = imageNames.compactMap { UIImage(named: $0) }
let images = imageNames.compactMap { UIImage(named: $0, in: MyEmptyClass.resourceBundle(), compatibleWith: nil) }
// Create a horizontal stack view
let stackView = UIStackView()
stackView.axis = .horizontal
stackView.spacing = 15 // Spacing between images
stackView.alignment = .center
stackView.distribution = .equalSpacing
// Add UIImageViews to the stack view
for image in images {
let imageView = UIImageView(image: image)
imageView.contentMode = .scaleAspectFit
imageView.widthAnchor.constraint(equalToConstant: 40).isActive = true // Set a width
imageView.heightAnchor.constraint(equalToConstant: 40).isActive = true // Set a height
stackView.addArrangedSubview(imageView)
}
// Add the stack view to your main view
smLogosView.addSubview(stackView)
// Set up constraints for the stack view
stackView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
stackView.leadingAnchor.constraint(equalTo: smLogosView.leadingAnchor, constant: 25),
stackView.centerYAnchor.constraint(equalTo: smLogosView.centerYAnchor),
])
}
func constructBarcode() -> String? {
// EAN 13 barcode construction
//TODO: FIX
// let couponString = coupon?._barcode ?? ""
let couponString = "123456789101112"
if (!couponString.isEmpty) {
var checkDigit = 0;
var result = 0;
var fixedCouponCode = couponString;
if (fixedCouponCode.count < 12) {
let loops = 12 - fixedCouponCode.count;
var zerosStr = "";
for i in 0 ..< loops {
zerosStr += "0"
}
// fixedCouponCode = zerosStr + fixedCouponCode;
fixedCouponCode = fixedCouponCode + zerosStr;
}
var multiplier = 3;
for idx in (0 ... (fixedCouponCode.count - 1)).reversed() {
let curChar = fixedCouponCode[idx];
result += (Int(curChar) ?? 0) * multiplier;
multiplier = multiplier == 3 ? 1 : 3;
}
checkDigit = 10 - (result % 10);
let barcodeStr = fixedCouponCode + String(checkDigit);
return barcodeStr;
}
return ""
}
// MARK: - Actions
@IBAction func mapButtonAction(_ sender: Any) {
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! SwiftWarplyFramework.CampaignViewController
vc.campaignUrl = swiftApi().getMarketPassMapUrl()
self.navigationController?.pushViewController(vc, animated: true)
}
}
......
......@@ -170,7 +170,8 @@ extension WalletActiveCouponsScrollTableViewCell: UICollectionViewDataSource,UIC
swiftApi().logTrackersEvent("click", ("LoyaltyWalletScreen:" + "ActiveMarketBanner"))
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "UnifiedCouponsViewController") as! SwiftWarplyFramework.UnifiedCouponsViewController
// let vc = storyboard.instantiateViewController(withIdentifier: "UnifiedCouponsViewController") as! SwiftWarplyFramework.UnifiedCouponsViewController
let vc = storyboard.instantiateViewController(withIdentifier: "MarketPassViewController") as! SwiftWarplyFramework.MarketPassViewController
parent?.navigationController?.pushViewController(vc, animated: true)
} else if (badgeId == "gfy") {
......
......@@ -9357,5 +9357,13 @@ public class swiftApi {
}
}
public func getMarketPassMapUrl() -> String {
let appUuid = swiftApi().getAppUuid()
if (appUuid == "f83dfde1145e4c2da69793abb2f579af") {
return "https://dev.supermarketdeals.eu/map"
} else {
return "https://supermarketdeals.eu/map"
}
}
}
......