Showing
5 changed files
with
28 additions
and
0 deletions
... | @@ -20,6 +20,7 @@ | ... | @@ -20,6 +20,7 @@ |
20 | 1EBEB02F280D6AA500BF802C /* GiftsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EBEB02E280D6AA500BF802C /* GiftsViewInterface.swift */; }; | 20 | 1EBEB02F280D6AA500BF802C /* GiftsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EBEB02E280D6AA500BF802C /* GiftsViewInterface.swift */; }; |
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 | E639EFA2280810E300B9DD94 /* CouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA0280810E300B9DD94 /* CouponsView.swift */; }; | 24 | E639EFA2280810E300B9DD94 /* CouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA0280810E300B9DD94 /* CouponsView.swift */; }; |
24 | E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */; }; | 25 | E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */; }; |
25 | E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; }; | 26 | E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; }; |
... | @@ -161,6 +162,7 @@ | ... | @@ -161,6 +162,7 @@ |
161 | 1EBEB02E280D6AA500BF802C /* GiftsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GiftsViewInterface.swift; sourceTree = "<group>"; }; | 162 | 1EBEB02E280D6AA500BF802C /* GiftsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GiftsViewInterface.swift; sourceTree = "<group>"; }; |
162 | 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>"; }; | 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>"; }; |
163 | E634A361282151E30069DE27 /* StepsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsView.swift; sourceTree = "<group>"; }; | 164 | 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>"; }; | ||
164 | E639EFA0280810E300B9DD94 /* CouponsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsView.swift; sourceTree = "<group>"; }; | 166 | E639EFA0280810E300B9DD94 /* CouponsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsView.swift; sourceTree = "<group>"; }; |
165 | E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsViewInterface.swift; sourceTree = "<group>"; }; | 167 | E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsViewInterface.swift; sourceTree = "<group>"; }; |
166 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; }; | 168 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; }; |
... | @@ -379,6 +381,7 @@ | ... | @@ -379,6 +381,7 @@ |
379 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */, | 381 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */, |
380 | E67D1EC528117F2400940F01 /* swiftApi.swift */, | 382 | E67D1EC528117F2400940F01 /* swiftApi.swift */, |
381 | E634A361282151E30069DE27 /* StepsView.swift */, | 383 | E634A361282151E30069DE27 /* StepsView.swift */, |
384 | + E634A363282168550069DE27 /* StepsViewInterface.swift */, | ||
382 | ); | 385 | ); |
383 | path = WarplySDKFrameworkIOS; | 386 | path = WarplySDKFrameworkIOS; |
384 | sourceTree = "<group>"; | 387 | sourceTree = "<group>"; |
... | @@ -771,6 +774,7 @@ | ... | @@ -771,6 +774,7 @@ |
771 | buildActionMask = 2147483647; | 774 | buildActionMask = 2147483647; |
772 | files = ( | 775 | files = ( |
773 | 1E879E27281AC99F0089F489 /* OldCouponsViewInterface.swift in Sources */, | 776 | 1E879E27281AC99F0089F489 /* OldCouponsViewInterface.swift in Sources */, |
777 | + E634A364282168550069DE27 /* StepsViewInterface.swift in Sources */, | ||
774 | E6D8DF0B27A942920006A3A9 /* WLEvent.m in Sources */, | 778 | E6D8DF0B27A942920006A3A9 /* WLEvent.m in Sources */, |
775 | E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */, | 779 | E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */, |
776 | E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */, | 780 | E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */, | ... | ... |
No preview for this file type
... | @@ -28,6 +28,7 @@ | ... | @@ -28,6 +28,7 @@ |
28 | - (UIViewController *) openWallet:(UIView*) parentView; | 28 | - (UIViewController *) openWallet:(UIView*) parentView; |
29 | - (UIViewController *) openMoreForYou:(UIView*) parentView; | 29 | - (UIViewController *) openMoreForYou:(UIView*) parentView; |
30 | - (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; | 30 | - (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; |
31 | +- (UIViewController *) openSteps:(UIView*) parentView; | ||
31 | - (NSDictionary *) provideInfoForCampaign; | 32 | - (NSDictionary *) provideInfoForCampaign; |
32 | - (void) applicationDidEnterBackground:(UIApplication *)application; | 33 | - (void) applicationDidEnterBackground:(UIApplication *)application; |
33 | - (void) applicationWillEnterForeground:(UIApplication *)application; | 34 | - (void) applicationWillEnterForeground:(UIApplication *)application; | ... | ... |
... | @@ -145,6 +145,11 @@ CMPedometer *pedometer; | ... | @@ -145,6 +145,11 @@ CMPedometer *pedometer; |
145 | return campaignViewController; | 145 | return campaignViewController; |
146 | } | 146 | } |
147 | 147 | ||
148 | +- (UIViewController *) openSteps:(UIView*) parentView { | ||
149 | + UIViewController *stepsViewController = [StepsViewInterface stepsViewController:parentView]; | ||
150 | + return stepsViewController; | ||
151 | +} | ||
152 | + | ||
148 | - (NSDictionary *) provideInfoForCampaign { | 153 | - (NSDictionary *) provideInfoForCampaign { |
149 | NSMutableDictionary* info = [[NSMutableDictionary alloc] init]; | 154 | NSMutableDictionary* info = [[NSMutableDictionary alloc] init]; |
150 | info[@"web_id"] = [Warply sharedService].webId; | 155 | info[@"web_id"] = [Warply sharedService].webId; | ... | ... |
1 | +// | ||
2 | +// StepsViewInterface.swift | ||
3 | +// WarplySDKFrameworkIOS | ||
4 | +// | ||
5 | +// Created by Βασιλης Σκουρας on 3/5/22. | ||
6 | +// | ||
7 | + | ||
8 | +import Foundation | ||
9 | +import SwiftUI | ||
10 | + | ||
11 | +@available(iOS 13.0.0, *) | ||
12 | +@objc public class StepsViewInterface : NSObject { | ||
13 | + | ||
14 | + @objc(stepsViewController:) static public func stepsViewController(parentView: UIView?) -> UIViewController { | ||
15 | + return UIHostingController(rootView: StepsView(parentView: parentView!)) | ||
16 | + } | ||
17 | + | ||
18 | +} |
-
Please register or login to post a comment