Showing
7 changed files
with
73 additions
and
2 deletions
... | @@ -21,6 +21,8 @@ | ... | @@ -21,6 +21,8 @@ |
21 | 260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; }; | 21 | 260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; }; |
22 | E634A362282151E30069DE27 /* StepsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A361282151E30069DE27 /* StepsView.swift */; }; | 22 | E634A362282151E30069DE27 /* StepsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A361282151E30069DE27 /* StepsView.swift */; }; |
23 | E634A364282168550069DE27 /* StepsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A363282168550069DE27 /* StepsViewInterface.swift */; }; | 23 | E634A364282168550069DE27 /* StepsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A363282168550069DE27 /* StepsViewInterface.swift */; }; |
24 | + E634A369282299770069DE27 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E634A368282299760069DE27 /* Main.storyboard */; }; | ||
25 | + E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A36A2822999B0069DE27 /* CouponsViewController.swift */; }; | ||
24 | E639EFA2280810E300B9DD94 /* CouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA0280810E300B9DD94 /* CouponsView.swift */; }; | 26 | E639EFA2280810E300B9DD94 /* CouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA0280810E300B9DD94 /* CouponsView.swift */; }; |
25 | E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */; }; | 27 | E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */; }; |
26 | E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; }; | 28 | E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; }; |
... | @@ -163,6 +165,8 @@ | ... | @@ -163,6 +165,8 @@ |
163 | 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>"; }; | 165 | 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>"; }; |
164 | E634A361282151E30069DE27 /* StepsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsView.swift; sourceTree = "<group>"; }; | 166 | E634A361282151E30069DE27 /* StepsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsView.swift; sourceTree = "<group>"; }; |
165 | E634A363282168550069DE27 /* StepsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsViewInterface.swift; sourceTree = "<group>"; }; | 167 | E634A363282168550069DE27 /* StepsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsViewInterface.swift; sourceTree = "<group>"; }; |
168 | + E634A368282299760069DE27 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; }; | ||
169 | + E634A36A2822999B0069DE27 /* CouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponsViewController.swift; sourceTree = "<group>"; }; | ||
166 | E639EFA0280810E300B9DD94 /* CouponsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsView.swift; sourceTree = "<group>"; }; | 170 | E639EFA0280810E300B9DD94 /* CouponsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsView.swift; sourceTree = "<group>"; }; |
167 | E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsViewInterface.swift; sourceTree = "<group>"; }; | 171 | E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsViewInterface.swift; sourceTree = "<group>"; }; |
168 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; }; | 172 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; }; |
... | @@ -382,6 +386,8 @@ | ... | @@ -382,6 +386,8 @@ |
382 | E67D1EC528117F2400940F01 /* swiftApi.swift */, | 386 | E67D1EC528117F2400940F01 /* swiftApi.swift */, |
383 | E634A361282151E30069DE27 /* StepsView.swift */, | 387 | E634A361282151E30069DE27 /* StepsView.swift */, |
384 | E634A363282168550069DE27 /* StepsViewInterface.swift */, | 388 | E634A363282168550069DE27 /* StepsViewInterface.swift */, |
389 | + E634A368282299760069DE27 /* Main.storyboard */, | ||
390 | + E634A36A2822999B0069DE27 /* CouponsViewController.swift */, | ||
385 | ); | 391 | ); |
386 | path = WarplySDKFrameworkIOS; | 392 | path = WarplySDKFrameworkIOS; |
387 | sourceTree = "<group>"; | 393 | sourceTree = "<group>"; |
... | @@ -730,6 +736,7 @@ | ... | @@ -730,6 +736,7 @@ |
730 | E6D8DF5A27A942920006A3A9 /* Media.xcassets in Resources */, | 736 | E6D8DF5A27A942920006A3A9 /* Media.xcassets in Resources */, |
731 | E6D8DF1127A942920006A3A9 /* warp_white_close_button.png in Resources */, | 737 | E6D8DF1127A942920006A3A9 /* warp_white_close_button.png in Resources */, |
732 | E6D8DF0E27A942920006A3A9 /* warp_white_back_button.png in Resources */, | 738 | E6D8DF0E27A942920006A3A9 /* warp_white_back_button.png in Resources */, |
739 | + E634A369282299770069DE27 /* Main.storyboard in Resources */, | ||
733 | E6D8DF0F27A942920006A3A9 /* warp_white_close_button@2x.png in Resources */, | 740 | E6D8DF0F27A942920006A3A9 /* warp_white_close_button@2x.png in Resources */, |
734 | E6D8DF0D27A942920006A3A9 /* warp_white_forward_button.png in Resources */, | 741 | E6D8DF0D27A942920006A3A9 /* warp_white_forward_button.png in Resources */, |
735 | E6D8DEFA27A942920006A3A9 /* WLNativeAdTableViewCell.xib in Resources */, | 742 | E6D8DEFA27A942920006A3A9 /* WLNativeAdTableViewCell.xib in Resources */, |
... | @@ -841,6 +848,7 @@ | ... | @@ -841,6 +848,7 @@ |
841 | E6D8DF2327A942920006A3A9 /* WLSMSActionHandlerDeprecated.m in Sources */, | 848 | E6D8DF2327A942920006A3A9 /* WLSMSActionHandlerDeprecated.m in Sources */, |
842 | E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */, | 849 | E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */, |
843 | E6D8DEF927A942920006A3A9 /* WLNativeAdCollectionViewCell.m in Sources */, | 850 | E6D8DEF927A942920006A3A9 /* WLNativeAdCollectionViewCell.m in Sources */, |
851 | + E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */, | ||
844 | E6D8DF4E27A942920006A3A9 /* FMDatabaseQueue.m in Sources */, | 852 | E6D8DF4E27A942920006A3A9 /* FMDatabaseQueue.m in Sources */, |
845 | E6D8DF0827A942920006A3A9 /* WLBaseItem.m in Sources */, | 853 | E6D8DF0827A942920006A3A9 /* WLBaseItem.m in Sources */, |
846 | E6D8DF0727A942920006A3A9 /* WLInboxItemViewController.m in Sources */, | 854 | E6D8DF0727A942920006A3A9 /* WLInboxItemViewController.m in Sources */, | ... | ... |
No preview for this file type
1 | +// | ||
2 | +// CouponsViewController.swift | ||
3 | +// WarplySDKFrameworkIOS | ||
4 | +// | ||
5 | +// Created by Βασιλης Σκουρας on 4/5/22. | ||
6 | +// | ||
7 | + | ||
8 | +import Foundation | ||
9 | +import UIKit | ||
10 | + | ||
11 | +@objc public class CouponsViewController: UIViewController { | ||
12 | + override func viewDidLoad() { | ||
13 | + super.viewDidLoad() | ||
14 | + // Do any additional setup after loading the view. | ||
15 | + } | ||
16 | +} |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | ||
3 | + <device id="retina6_1" orientation="portrait" appearance="light"/> | ||
4 | + <dependencies> | ||
5 | + <deployment identifier="iOS"/> | ||
6 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/> | ||
7 | + <capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
8 | + <capability name="System colors in document resources" minToolsVersion="11.0"/> | ||
9 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
10 | + </dependencies> | ||
11 | + <scenes> | ||
12 | + <!--Coupons View Controller--> | ||
13 | + <scene sceneID="s0d-6b-0kx"> | ||
14 | + <objects> | ||
15 | + <viewController id="Y6W-OH-hqX" customClass="CouponsViewController" customModule="WarplySDKFrameworkIOS" customModuleProvider="target" sceneMemberID="viewController"> | ||
16 | + <view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc"> | ||
17 | + <rect key="frame" x="0.0" y="0.0" width="414" height="896"/> | ||
18 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
19 | + <subviews> | ||
20 | + <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7KR-sE-hFt"> | ||
21 | + <rect key="frame" x="174" y="231" width="67" height="31"/> | ||
22 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
23 | + <state key="normal" title="Button"/> | ||
24 | + <buttonConfiguration key="configuration" style="plain" title="Button"/> | ||
25 | + </button> | ||
26 | + </subviews> | ||
27 | + <viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/> | ||
28 | + <color key="backgroundColor" systemColor="systemBackgroundColor"/> | ||
29 | + </view> | ||
30 | + </viewController> | ||
31 | + <placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/> | ||
32 | + </objects> | ||
33 | + <point key="canvasLocation" x="139" y="129"/> | ||
34 | + </scene> | ||
35 | + </scenes> | ||
36 | + <resources> | ||
37 | + <systemColor name="systemBackgroundColor"> | ||
38 | + <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
39 | + </systemColor> | ||
40 | + </resources> | ||
41 | +</document> |
... | @@ -95,7 +95,7 @@ CMPedometer *pedometer; | ... | @@ -95,7 +95,7 @@ CMPedometer *pedometer; |
95 | 95 | ||
96 | - (UIViewController *) openCoupons:(UIView*) parentView{ | 96 | - (UIViewController *) openCoupons:(UIView*) parentView{ |
97 | 97 | ||
98 | - UIViewController *couponsViewController = [CouponsViewInterface couponsViewController:parentView]; | 98 | + UIViewController *couponsViewController = [[CouponsViewController alloc] init]; |
99 | return couponsViewController; | 99 | return couponsViewController; |
100 | } | 100 | } |
101 | 101 | ... | ... |
... | @@ -80,7 +80,7 @@ struct StepsView: View { | ... | @@ -80,7 +80,7 @@ struct StepsView: View { |
80 | 80 | ||
81 | func goBack(){ | 81 | func goBack(){ |
82 | for subview in parentView.subviews { | 82 | for subview in parentView.subviews { |
83 | - if(subview.tag == 1) { | 83 | + if(subview.tag == 11) { |
84 | subview.removeFromSuperview() | 84 | subview.removeFromSuperview() |
85 | } | 85 | } |
86 | } | 86 | } | ... | ... |
... | @@ -56,6 +56,12 @@ public class swiftApi { | ... | @@ -56,6 +56,12 @@ public class swiftApi { |
56 | CCMSLoyaltyCampaigns.init(campaigns: campaigns) | 56 | CCMSLoyaltyCampaigns.init(campaigns: campaigns) |
57 | } | 57 | } |
58 | 58 | ||
59 | + public func getActiveDFYCoupons() -> Array<String>{ | ||
60 | + let array: Array<String> = [] | ||
61 | + return array | ||
62 | + } | ||
63 | + | ||
64 | + | ||
59 | public class CouponSetItemModel { | 65 | public class CouponSetItemModel { |
60 | let uuid: String? | 66 | let uuid: String? |
61 | let admin_name: String? | 67 | let admin_name: String? | ... | ... |
-
Please register or login to post a comment