Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Vasilis
2022-04-14 18:42:35 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91bcdcbaf73f49f3be3d9aebf76107249277b52d
91bcdcba
1 parent
6926797a
some changes
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
31 deletions
WarplySDKFrameworkIOS/Media.xcassets/ic_back.imageset/ic_back-1.png
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcodeproj/project.pbxproj
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
WarplySDKFrameworkIOS/Media.xcassets/ic_back.imageset/ic_back-1.png
deleted
100644 → 0
View file @
6926797
470 Bytes
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcodeproj/project.pbxproj
View file @
91bcdcb
...
...
@@ -13,6 +13,7 @@
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 */; };
E66881C92808784000370C98 /* ic_back.png in Resources */ = {isa = PBXBuildFile; fileRef = E66881C82808783F00370C98 /* ic_back.png */; };
E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; };
E6D8DE6E27A942010006A3A9 /* WarplySDKFrameworkIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */; settings = {ATTRIBUTES = (Public, ); }; };
E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; };
...
...
@@ -138,6 +139,7 @@
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>"; };
E66881C82808783F00370C98 /* ic_back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ic_back.png; path = Media.xcassets/ic_back.imageset/ic_back.png; sourceTree = "<group>"; };
E6D8DE6827A942010006A3A9 /* WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WarplySDKFrameworkIOS.h; sourceTree = "<group>"; };
E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = WarplySDKFrameworkIOS.docc; sourceTree = "<group>"; };
...
...
@@ -297,6 +299,7 @@
E6D8DE5E27A942000006A3A9 = {
isa = PBXGroup;
children = (
E66881C82808783F00370C98 /* ic_back.png */,
E6D8DE6A27A942010006A3A9 /* WarplySDKFrameworkIOS */,
E6D8DE6927A942010006A3A9 /* Products */,
870107DF603473A1B9FB618F /* Pods */,
...
...
@@ -677,6 +680,7 @@
E639EFAB2808347700B9DD94 /* ic_back.png in Resources */,
E6EA2F6E2806E32500EC4CF5 /* Coupons.xib in Resources */,
E6D8DF1027A942920006A3A9 /* warp_white_forward_button@2x.png in Resources */,
E66881C92808784000370C98 /* ic_back.png in Resources */,
E6D8DEF127A942920006A3A9 /* WLNativeVideoTableViewCell.xib in Resources */,
E6D8DEFB27A942920006A3A9 /* WLNativeAdCollectionViewCell.xib in Resources */,
E6D8DF0C27A942920006A3A9 /* warp_white_back_button@2x.png in Resources */,
...
...
@@ -901,6 +905,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = WarplySDKFrameworkIOS/Media;
DEVELOPMENT_TEAM = VW5AF53FLP;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
...
...
@@ -936,6 +941,7 @@
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = WarplySDKFrameworkIOS/Media;
DEVELOPMENT_TEAM = VW5AF53FLP;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
91bcdcb
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
View file @
91bcdcb
...
...
@@ -7,7 +7,6 @@
#if canImport(SwiftUI)
import
SwiftUI
import
WarplySDKFrameworkIOS
class
DataModel
{
var
data
:
Array
<
NSDictionary
>
?
...
...
@@ -41,13 +40,13 @@ struct CouponsView: View {
var
body
:
some
View
{
VStack
{
ZStack
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
identifier
:
"framework.warp.ly.warplySDKFrameworkIOS"
))
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.025
,
height
:
self
.
uiscreen
.
height
*
0.02
)
.
offset
(
x
:
-
self
.
uiscreen
.
width
/
2
+
self
.
uiscreen
.
width
*
0.05
,
y
:
self
.
uiscreen
.
height
*
0.0
4
)
.
offset
(
x
:
-
self
.
uiscreen
.
width
/
2
+
self
.
uiscreen
.
width
*
0.05
,
y
:
self
.
uiscreen
.
height
*
0.0
7
)
Text
(
"Όλα τα κουπόνια μου"
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.025
,
alignment
:
.
center
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.0
4
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.0
7
)
.
frame
(
width
:
self
.
uiscreen
.
width
)
}
ScrollView
{
...
...
@@ -58,34 +57,26 @@ struct CouponsView: View {
// if (data?.count())! > 0 {
// data?.forEach { (language) in
ForEach
(
data
,
id
:
\
.
self
)
{
result
in
ZStack
{
Image
(
"logo"
,
bundle
:
Bundle
(
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.04
,
height
:
self
.
uiscreen
.
height
*
0.04
,
alignment
:
.
topLeading
)
.
cornerRadius
(
CGFloat
(
self
.
uiscreen
.
height
*
0.02
))
.
offset
(
x
:
-
self
.
uiscreen
.
width
/
2
+
self
.
uiscreen
.
width
*
0.14
,
y
:
-
self
.
uiscreen
.
height
*
0.07
)
}
.
background
(
Image
(
"coupons_container"
,
bundle
:
Bundle
(
identifier
:
"framework.warp.ly.warplySDKFrameworkIOS"
))
.
resizable
()
.
edgesIgnoringSafeArea
(
.
all
)
.
frame
(
width
:
UIScreen
.
main
.
bounds
.
width
,
height
:
UIScreen
.
main
.
bounds
.
height
)
)
}
// } else {
// VStack {
// Text("No coupons available")
// .frame( width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.04, alignment: .leading)
// .offset(y: -self.uiscreen.height * 0.03)
// .foregroundColor(.white)
// }
// }
// ForEach(data, id: \.self) { result in
//
//
//
// ZStack {
// Image("logo", bundle: Bundle(for: MyEmptyClass.self))
// .resizable()
// .frame(width: self.uiscreen.height * 0.04, height: self.uiscreen.height * 0.04, alignment: .topLeading)
// .cornerRadius(CGFloat(self.uiscreen.height * 0.02))
// .offset(x: -self.uiscreen.width / 2 + self.uiscreen.width * 0.14, y: -self.uiscreen.height * 0.07)
//
// }.background(
// Image("coupons_container", bundle: Bundle(identifier:"framework.warp.ly.warplySDKFrameworkIOS"))
// .resizable()
// .edgesIgnoringSafeArea(.all)
// .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)
// )
//
}
//
}
...
...
@@ -101,3 +92,20 @@ struct CouponsView: View {
// ProfileView()
// }
//}
struct
Previews_CouponsView_Previews
:
PreviewProvider
{
static
var
uiscreen
=
UIScreen
.
main
.
bounds
static
var
previews
:
some
View
{
ZStack
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.025
,
height
:
self
.
uiscreen
.
height
*
0.02
)
.
offset
(
x
:
-
self
.
uiscreen
.
width
/
2
+
self
.
uiscreen
.
width
*
0.05
,
y
:
self
.
uiscreen
.
height
*
0.07
)
Text
(
"Όλα τα κουπόνια μου"
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.025
,
alignment
:
.
center
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.07
)
.
frame
(
width
:
self
.
uiscreen
.
width
)
}
}
}
...
...
Please
register
or
login
to post a comment