Vasilis

addition of screens

......@@ -12,6 +12,10 @@
260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; };
E634A369282299770069DE27 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E634A368282299760069DE27 /* Main.storyboard */; };
E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A36A2822999B0069DE27 /* CouponsViewController.swift */; };
E634A36F2823D2290069DE27 /* WalletViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A36E2823D2290069DE27 /* WalletViewController.swift */; };
E634A3712823D26E0069DE27 /* GiftsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A3702823D26E0069DE27 /* GiftsViewController.swift */; };
E634A3732823D3690069DE27 /* DetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A3722823D3690069DE27 /* DetailsViewController.swift */; };
E634A3752823D3AB0069DE27 /* MFYViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A3742823D3AB0069DE27 /* MFYViewController.swift */; };
E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; };
E639EFAB2808347700B9DD94 /* ic_back.png in Resources */ = {isa = PBXBuildFile; fileRef = E639EFAA2808347700B9DD94 /* ic_back.png */; };
E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; };
......@@ -137,6 +141,10 @@
B9413513157AD76ECE896B81 /* Pods-WarplySDKFrameworkIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WarplySDKFrameworkIOS.release.xcconfig"; path = "Target Support Files/Pods-WarplySDKFrameworkIOS/Pods-WarplySDKFrameworkIOS.release.xcconfig"; sourceTree = "<group>"; };
E634A368282299760069DE27 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
E634A36A2822999B0069DE27 /* CouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponsViewController.swift; sourceTree = "<group>"; };
E634A36E2823D2290069DE27 /* WalletViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletViewController.swift; sourceTree = "<group>"; };
E634A3702823D26E0069DE27 /* GiftsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GiftsViewController.swift; sourceTree = "<group>"; };
E634A3722823D3690069DE27 /* DetailsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailsViewController.swift; sourceTree = "<group>"; };
E634A3742823D3AB0069DE27 /* MFYViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFYViewController.swift; sourceTree = "<group>"; };
E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; };
E639EFAA2808347700B9DD94 /* ic_back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ic_back.png; sourceTree = "<group>"; };
E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; sourceTree = "<group>"; };
......@@ -330,6 +338,10 @@
E67D1EC528117F2400940F01 /* swiftApi.swift */,
E634A368282299760069DE27 /* Main.storyboard */,
E634A36A2822999B0069DE27 /* CouponsViewController.swift */,
E634A36E2823D2290069DE27 /* WalletViewController.swift */,
E634A3702823D26E0069DE27 /* GiftsViewController.swift */,
E634A3722823D3690069DE27 /* DetailsViewController.swift */,
E634A3742823D3AB0069DE27 /* MFYViewController.swift */,
1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */,
);
path = WarplySDKFrameworkIOS;
......@@ -734,6 +746,7 @@
E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */,
E6D8DF2927A942920006A3A9 /* NSData+SSToolkitAdditions.m in Sources */,
E6D8DEFC27A942920006A3A9 /* WLCustomNativeAdTableViewCell.m in Sources */,
E634A3732823D3690069DE27 /* DetailsViewController.swift in Sources */,
E6D8DF4A27A942920006A3A9 /* AFNetworkReachabilityManager.m in Sources */,
1E7564BA2823C6D900B9D2AE /* ViewControllerExtensions.swift in Sources */,
E6D8DF4B27A942920006A3A9 /* AFSecurityPolicy.m in Sources */,
......@@ -764,6 +777,8 @@
E6D8DEF827A942920006A3A9 /* WLNativeAdTableViewCell.m in Sources */,
E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */,
E6D8DF4427A942920006A3A9 /* AFURLResponseSerialization.m in Sources */,
E634A36F2823D2290069DE27 /* WalletViewController.swift in Sources */,
E634A3752823D3AB0069DE27 /* MFYViewController.swift in Sources */,
E6D8DEF527A942920006A3A9 /* WLNativeAdsTableMode.m in Sources */,
E6D8DF1C27A942920006A3A9 /* WLUtils.m in Sources */,
E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */,
......@@ -772,6 +787,7 @@
E6D8DF2327A942920006A3A9 /* WLSMSActionHandlerDeprecated.m in Sources */,
E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */,
E6D8DEF927A942920006A3A9 /* WLNativeAdCollectionViewCell.m in Sources */,
E634A3712823D26E0069DE27 /* GiftsViewController.swift in Sources */,
E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */,
E6D8DF4E27A942920006A3A9 /* FMDatabaseQueue.m in Sources */,
E6D8DF0827A942920006A3A9 /* WLBaseItem.m in Sources */,
......
......@@ -11,23 +11,7 @@ import UIKit
@objc public class CouponsViewController: UIViewController {
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
// self.navigationController?.navigationBar.topItem?.title = ""
//
// self.navigationController?.navigationBar.backIndicatorImage = UIImage(contentsOfFile: "ic_back")
// self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(contentsOfFile: "ic_back")
let backButton = UIButton(type: UIButton.ButtonType.custom) as UIButton
backButton.frame = CGRect(x: 0, y: 0, width: 40, height: 25)
backButton.imageView!.contentMode = .scaleAspectFit
backButton.setImage(UIImage(named: "ic_back"), for: .normal)
backButton.imageEdgeInsets = UIEdgeInsets(top: 0, left: -20, bottom: 0, right: 0)
backButton.addTarget(self, action: #selector(moveToBack(_:)), for: .touchUpInside)
let leftBarButtonItem: UIBarButtonItem = UIBarButtonItem(customView: backButton)
self.navigationController?.navigationItem.setLeftBarButton(leftBarButtonItem, animated: false)
self.navigationController?.navigationItem.title = ""
}
@objc func moveToBack(_ sender:UIButton){
self.navigationController?.popViewController(animated: true)
setBackButton()
setNavigationTitle("Εκπτωτικό κουπόνι")
}
}
......
//
// DetailsViewController.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 5/5/22.
//
import Foundation
import UIKit
@objc public class DetailsViewController: UIViewController {
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setBackButton()
setNavigationTitle("Ανάλυση")
}
}
//
// GiftsViewController.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 5/5/22.
//
import Foundation
import UIKit
@objc public class GiftsViewController: UIViewController {
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setBackButton()
setNavigationTitle("Gifts for You")
}
}
//
// MFYViewController.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 5/5/22.
//
import Foundation
import UIKit
@objc public class MFYViewController: UIViewController {
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setBackButton()
setNavigationTitle("More for you")
}
}
......@@ -32,6 +32,66 @@
</objects>
<point key="canvasLocation" x="139" y="129"/>
</scene>
<!--Details View Controller-->
<scene sceneID="TPv-Bl-CUP">
<objects>
<viewController storyboardIdentifier="DetailsViewController" id="sWR-yI-hxH" customClass="DetailsViewController" customModule="WarplySDKFrameworkIOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="ghE-y5-6SE">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="aV5-w9-oCZ"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="2L4-Dc-pEY" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="116" y="817"/>
</scene>
<!--View Controller-->
<scene sceneID="g5j-BC-VRb">
<objects>
<viewController storyboardIdentifier="MFYViewController" id="YRk-Az-LOb" customClass="MFYViewController" customModule="WarplySDKFrameworkIOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="iEB-He-DJV">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="eXr-I0-rkv"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="cet-Ta-bHg" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="878" y="828"/>
</scene>
<!--Wallet View Controller-->
<scene sceneID="tSr-9x-GQW">
<objects>
<viewController storyboardIdentifier="WalletViewController" id="pKQ-52-a1r" customClass="WalletViewController" customModule="WarplySDKFrameworkIOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="e1e-Eg-v4q">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="Jx1-b6-RBF"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="IOg-BB-r5Q" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="867" y="129"/>
</scene>
<!--Gifts View Controller-->
<scene sceneID="Rnz-IX-el9">
<objects>
<viewController storyboardIdentifier="GiftsViewController" id="wy8-hC-CyC" customClass="GiftsViewController" customModule="WarplySDKFrameworkIOS" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="rgt-dj-Aiw">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="8yz-fh-0GA"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="YLX-2E-CQz" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1612" y="129"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
......
//
// WalletViewController.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 5/5/22.
//
import Foundation
import UIKit
@objc public class WalletViewController: UIViewController {
public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setBackButton()
setNavigationTitle("My loyalty wallet")
}
}