Showing
4 changed files
with
45 additions
and
31 deletions
470 Bytes
| ... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
| 13 | E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; }; | 13 | E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; }; |
| 14 | E639EFAB2808347700B9DD94 /* ic_back.png in Resources */ = {isa = PBXBuildFile; fileRef = E639EFAA2808347700B9DD94 /* ic_back.png */; }; | 14 | E639EFAB2808347700B9DD94 /* ic_back.png in Resources */ = {isa = PBXBuildFile; fileRef = E639EFAA2808347700B9DD94 /* ic_back.png */; }; |
| 15 | E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; }; | 15 | E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; }; |
| 16 | + E66881C92808784000370C98 /* ic_back.png in Resources */ = {isa = PBXBuildFile; fileRef = E66881C82808783F00370C98 /* ic_back.png */; }; | ||
| 16 | E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; }; | 17 | E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; }; |
| 17 | E6D8DE6E27A942010006A3A9 /* WarplySDKFrameworkIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; | 18 | E6D8DE6E27A942010006A3A9 /* WarplySDKFrameworkIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; |
| 18 | E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; }; | 19 | E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; }; |
| ... | @@ -138,6 +139,7 @@ | ... | @@ -138,6 +139,7 @@ |
| 138 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; }; | 139 | E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; }; |
| 139 | E639EFAA2808347700B9DD94 /* ic_back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ic_back.png; sourceTree = "<group>"; }; | 140 | E639EFAA2808347700B9DD94 /* ic_back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ic_back.png; sourceTree = "<group>"; }; |
| 140 | E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; sourceTree = "<group>"; }; | 141 | E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; sourceTree = "<group>"; }; |
| 142 | + E66881C82808783F00370C98 /* ic_back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ic_back.png; path = Media.xcassets/ic_back.imageset/ic_back.png; sourceTree = "<group>"; }; | ||
| 141 | E6D8DE6827A942010006A3A9 /* WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | 143 | E6D8DE6827A942010006A3A9 /* WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 142 | E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WarplySDKFrameworkIOS.h; sourceTree = "<group>"; }; | 144 | E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WarplySDKFrameworkIOS.h; sourceTree = "<group>"; }; |
| 143 | E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = WarplySDKFrameworkIOS.docc; sourceTree = "<group>"; }; | 145 | E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = WarplySDKFrameworkIOS.docc; sourceTree = "<group>"; }; |
| ... | @@ -297,6 +299,7 @@ | ... | @@ -297,6 +299,7 @@ |
| 297 | E6D8DE5E27A942000006A3A9 = { | 299 | E6D8DE5E27A942000006A3A9 = { |
| 298 | isa = PBXGroup; | 300 | isa = PBXGroup; |
| 299 | children = ( | 301 | children = ( |
| 302 | + E66881C82808783F00370C98 /* ic_back.png */, | ||
| 300 | E6D8DE6A27A942010006A3A9 /* WarplySDKFrameworkIOS */, | 303 | E6D8DE6A27A942010006A3A9 /* WarplySDKFrameworkIOS */, |
| 301 | E6D8DE6927A942010006A3A9 /* Products */, | 304 | E6D8DE6927A942010006A3A9 /* Products */, |
| 302 | 870107DF603473A1B9FB618F /* Pods */, | 305 | 870107DF603473A1B9FB618F /* Pods */, |
| ... | @@ -677,6 +680,7 @@ | ... | @@ -677,6 +680,7 @@ |
| 677 | E639EFAB2808347700B9DD94 /* ic_back.png in Resources */, | 680 | E639EFAB2808347700B9DD94 /* ic_back.png in Resources */, |
| 678 | E6EA2F6E2806E32500EC4CF5 /* Coupons.xib in Resources */, | 681 | E6EA2F6E2806E32500EC4CF5 /* Coupons.xib in Resources */, |
| 679 | E6D8DF1027A942920006A3A9 /* warp_white_forward_button@2x.png in Resources */, | 682 | E6D8DF1027A942920006A3A9 /* warp_white_forward_button@2x.png in Resources */, |
| 683 | + E66881C92808784000370C98 /* ic_back.png in Resources */, | ||
| 680 | E6D8DEF127A942920006A3A9 /* WLNativeVideoTableViewCell.xib in Resources */, | 684 | E6D8DEF127A942920006A3A9 /* WLNativeVideoTableViewCell.xib in Resources */, |
| 681 | E6D8DEFB27A942920006A3A9 /* WLNativeAdCollectionViewCell.xib in Resources */, | 685 | E6D8DEFB27A942920006A3A9 /* WLNativeAdCollectionViewCell.xib in Resources */, |
| 682 | E6D8DF0C27A942920006A3A9 /* warp_white_back_button@2x.png in Resources */, | 686 | E6D8DF0C27A942920006A3A9 /* warp_white_back_button@2x.png in Resources */, |
| ... | @@ -901,6 +905,7 @@ | ... | @@ -901,6 +905,7 @@ |
| 901 | CODE_SIGN_STYLE = Automatic; | 905 | CODE_SIGN_STYLE = Automatic; |
| 902 | CURRENT_PROJECT_VERSION = 1; | 906 | CURRENT_PROJECT_VERSION = 1; |
| 903 | DEFINES_MODULE = YES; | 907 | DEFINES_MODULE = YES; |
| 908 | + DEVELOPMENT_ASSET_PATHS = WarplySDKFrameworkIOS/Media; | ||
| 904 | DEVELOPMENT_TEAM = VW5AF53FLP; | 909 | DEVELOPMENT_TEAM = VW5AF53FLP; |
| 905 | DYLIB_COMPATIBILITY_VERSION = 1; | 910 | DYLIB_COMPATIBILITY_VERSION = 1; |
| 906 | DYLIB_CURRENT_VERSION = 1; | 911 | DYLIB_CURRENT_VERSION = 1; |
| ... | @@ -936,6 +941,7 @@ | ... | @@ -936,6 +941,7 @@ |
| 936 | CODE_SIGN_STYLE = Automatic; | 941 | CODE_SIGN_STYLE = Automatic; |
| 937 | CURRENT_PROJECT_VERSION = 1; | 942 | CURRENT_PROJECT_VERSION = 1; |
| 938 | DEFINES_MODULE = YES; | 943 | DEFINES_MODULE = YES; |
| 944 | + DEVELOPMENT_ASSET_PATHS = WarplySDKFrameworkIOS/Media; | ||
| 939 | DEVELOPMENT_TEAM = VW5AF53FLP; | 945 | DEVELOPMENT_TEAM = VW5AF53FLP; |
| 940 | DYLIB_COMPATIBILITY_VERSION = 1; | 946 | DYLIB_COMPATIBILITY_VERSION = 1; |
| 941 | DYLIB_CURRENT_VERSION = 1; | 947 | DYLIB_CURRENT_VERSION = 1; | ... | ... |
No preview for this file type
| ... | @@ -7,7 +7,6 @@ | ... | @@ -7,7 +7,6 @@ |
| 7 | 7 | ||
| 8 | #if canImport(SwiftUI) | 8 | #if canImport(SwiftUI) |
| 9 | import SwiftUI | 9 | import SwiftUI |
| 10 | -import WarplySDKFrameworkIOS | ||
| 11 | 10 | ||
| 12 | class DataModel { | 11 | class DataModel { |
| 13 | var data: Array<NSDictionary>? | 12 | var data: Array<NSDictionary>? |
| ... | @@ -41,13 +40,13 @@ struct CouponsView: View { | ... | @@ -41,13 +40,13 @@ struct CouponsView: View { |
| 41 | var body: some View { | 40 | var body: some View { |
| 42 | VStack { | 41 | VStack { |
| 43 | ZStack { | 42 | ZStack { |
| 44 | - Image("ic_back", bundle: Bundle(identifier:"framework.warp.ly.warplySDKFrameworkIOS")) | 43 | + Image("ic_back", bundle: Bundle(for: MyEmptyClass.self)) |
| 45 | .resizable() | 44 | .resizable() |
| 46 | .frame(width: self.uiscreen.height * 0.025, height: self.uiscreen.height * 0.02) | 45 | .frame(width: self.uiscreen.height * 0.025, height: self.uiscreen.height * 0.02) |
| 47 | - .offset(x: -self.uiscreen.width / 2 + self.uiscreen.width * 0.05, y: self.uiscreen.height * 0.04) | 46 | + .offset(x: -self.uiscreen.width / 2 + self.uiscreen.width * 0.05, y: self.uiscreen.height * 0.07) |
| 48 | Text("Όλα τα κουπόνια μου") | 47 | Text("Όλα τα κουπόνια μου") |
| 49 | .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center) | 48 | .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center) |
| 50 | - .offset( y: self.uiscreen.height * 0.04) | 49 | + .offset( y: self.uiscreen.height * 0.07) |
| 51 | .frame(width: self.uiscreen.width) | 50 | .frame(width: self.uiscreen.width) |
| 52 | } | 51 | } |
| 53 | ScrollView { | 52 | ScrollView { |
| ... | @@ -58,34 +57,26 @@ struct CouponsView: View { | ... | @@ -58,34 +57,26 @@ struct CouponsView: View { |
| 58 | 57 | ||
| 59 | // if (data?.count())! > 0 { | 58 | // if (data?.count())! > 0 { |
| 60 | // data?.forEach { (language) in | 59 | // data?.forEach { (language) in |
| 61 | - ForEach(data, id: \.self) { result in | 60 | +// ForEach(data, id: \.self) { result in |
| 62 | - | 61 | +// |
| 63 | - | 62 | +// |
| 64 | - | 63 | +// |
| 65 | - ZStack { | 64 | +// ZStack { |
| 66 | - Image("logo", bundle: Bundle(Bundle(for: MyEmptyClass.self)) | 65 | +// Image("logo", bundle: Bundle(for: MyEmptyClass.self)) |
| 67 | - .resizable() | 66 | +// .resizable() |
| 68 | - .frame(width: self.uiscreen.height * 0.04, height: self.uiscreen.height * 0.04, alignment: .topLeading) | 67 | +// .frame(width: self.uiscreen.height * 0.04, height: self.uiscreen.height * 0.04, alignment: .topLeading) |
| 69 | - .cornerRadius(CGFloat(self.uiscreen.height * 0.02)) | 68 | +// .cornerRadius(CGFloat(self.uiscreen.height * 0.02)) |
| 70 | - .offset(x: -self.uiscreen.width / 2 + self.uiscreen.width * 0.14, y: -self.uiscreen.height * 0.07) | 69 | +// .offset(x: -self.uiscreen.width / 2 + self.uiscreen.width * 0.14, y: -self.uiscreen.height * 0.07) |
| 71 | - | 70 | +// |
| 72 | - }.background( | 71 | +// }.background( |
| 73 | - Image("coupons_container", bundle: Bundle(identifier:"framework.warp.ly.warplySDKFrameworkIOS")) | 72 | +// Image("coupons_container", bundle: Bundle(identifier:"framework.warp.ly.warplySDKFrameworkIOS")) |
| 74 | - .resizable() | 73 | +// .resizable() |
| 75 | - .edgesIgnoringSafeArea(.all) | 74 | +// .edgesIgnoringSafeArea(.all) |
| 76 | - .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height) | 75 | +// .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height) |
| 77 | - ) | 76 | +// ) |
| 78 | - | 77 | +// |
| 79 | } | 78 | } |
| 80 | -// } else { | 79 | +// |
| 81 | -// VStack { | ||
| 82 | -// Text("No coupons available") | ||
| 83 | -// .frame( width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.04, alignment: .leading) | ||
| 84 | -// .offset(y: -self.uiscreen.height * 0.03) | ||
| 85 | -// .foregroundColor(.white) | ||
| 86 | -// } | ||
| 87 | -// } | ||
| 88 | - } | ||
| 89 | 80 | ||
| 90 | 81 | ||
| 91 | } | 82 | } |
| ... | @@ -101,3 +92,20 @@ struct CouponsView: View { | ... | @@ -101,3 +92,20 @@ struct CouponsView: View { |
| 101 | // ProfileView() | 92 | // ProfileView() |
| 102 | // } | 93 | // } |
| 103 | //} | 94 | //} |
| 95 | + | ||
| 96 | +struct Previews_CouponsView_Previews: PreviewProvider { | ||
| 97 | + static var uiscreen = UIScreen.main.bounds | ||
| 98 | + static var previews: some View { | ||
| 99 | + ZStack { | ||
| 100 | + Image("ic_back", bundle: Bundle(for: MyEmptyClass.self)) | ||
| 101 | + .resizable() | ||
| 102 | + .frame(width: self.uiscreen.height * 0.025, height: self.uiscreen.height * 0.02) | ||
| 103 | + .offset(x: -self.uiscreen.width / 2 + self.uiscreen.width * 0.05, y: self.uiscreen.height * 0.07) | ||
| 104 | + Text("Όλα τα κουπόνια μου") | ||
| 105 | + .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center) | ||
| 106 | + .offset( y: self.uiscreen.height * 0.07) | ||
| 107 | + .frame(width: self.uiscreen.width) | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + } | ||
| 111 | +} | ... | ... |
-
Please register or login to post a comment