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-29 17:54:14 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
444b84d6a2fabeb6b8cc83b3ef78d3d8c254f39f
444b84d6
1 parent
f716060e
several fixes
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
85 additions
and
63 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeViewInterface.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponViewInterface.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MoreForYouView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.h
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WalletView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
444b84d
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
444b84d
...
...
@@ -30,8 +30,8 @@
filePath =
"WarplySDKFrameworkIOS/CouponsView.swift"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"21
2
"
endingLineNumber =
"21
2
"
startingLineNumber =
"21
8
"
endingLineNumber =
"21
8
"
landmarkName =
"body"
landmarkType =
"24"
>
</BreakpointContent>
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeViewInterface.swift
View file @
444b84d
...
...
@@ -11,9 +11,9 @@ import SwiftUI
@available(iOS 13.0.0, *)
@objc
public
class
CouponBarcodeViewInterface
:
NSObject
{
@objc(couponBarcodeViewController::)
static
public
func
couponBarcodeViewController
(
parentView
:
UIView
?,
coupon
:
Dictionary
<
String
,
Any
>
)
->
UIViewController
{
return
UIHostingController
(
rootView
:
CouponBarcodeView
(
parentView
:
parentView
!
,
coupon
:
coupon
))
}
//
@objc(couponBarcodeViewController::) static public func couponBarcodeViewController(parentView: UIView?, coupon: Dictionary<String, Any>) -> UIViewController {
//
return UIHostingController(rootView: CouponBarcodeView(parentView: parentView!, coupon: coupon))
//
}
}
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponViewInterface.swift
View file @
444b84d
...
...
@@ -11,8 +11,8 @@ import SwiftUI
@available(iOS 13.0.0, *)
@objc
public
class
CouponViewInterface
:
NSObject
{
@objc(couponViewController::)
static
public
func
couponViewController
(
parentView
:
UIView
?,
coupon
:
Dictionary
<
String
,
Any
>
)
->
UIViewController
{
return
UIHostingController
(
rootView
:
CouponView
(
parentView
:
parentView
!
,
coupon
:
coupon
))
}
//
@objc(couponViewController::) static public func couponViewController(parentView: UIView?, coupon: Dictionary<String, Any>) -> UIViewController {
//
return UIHostingController(rootView: CouponView(parentView: parentView!, coupon: coupon))
//
}
}
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
View file @
444b84d
...
...
@@ -136,23 +136,29 @@ extension CouponsView {
var
body
:
some
View
{
HStack
{
Button
(
action
:
goBack
)
{
HStack
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.022
,
height
:
self
.
uiscreen
.
height
*
0.04
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.015
)
}
}
HStack
(
alignment
:
.
center
)
{
Button
{
// Button Action
goBack
()
}
label
:
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.025
,
height
:
self
.
uiscreen
.
height
*
0.02
)
}
Text
(
"Όλα τα κουπόνια μου"
)
.
fontWeight
(
.
medium
)
.
font
(
.
system
(
size
:
16
))
.
foregroundColor
(
Color
(
red
:
0.20784313725490197
,
green
:
0.3176470588235294
,
blue
:
0.40784313725490196
))
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.025
,
alignment
:
.
center
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.02
)
.
font
(
.
system
(
size
:
15
))
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
*
0.1
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
padding
(
.
vertical
,
10
)
}
}
...
...
@@ -292,7 +298,7 @@ struct CouponsView: View {
}
.
padding
(
.
top
,
self
.
uiscreen
.
height
*
0.05
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
*
0.9
)
.
frame
(
maxWidth
:
.
infinity
,
maxHeight
:
.
infinity
)
.
background
(
Image
(
"coupons_scrollview"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MoreForYouView.swift
View file @
444b84d
...
...
@@ -34,21 +34,29 @@ extension MoreForYouView {
var
body
:
some
View
{
HStack
{
Button
(
action
:
goBack
)
{
HStack
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.022
,
height
:
self
.
uiscreen
.
height
*
0.04
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.015
)
}
}
HStack
(
alignment
:
.
center
)
{
Button
{
// Button Action
goBack
()
}
label
:
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.025
,
height
:
self
.
uiscreen
.
height
*
0.02
)
}
Text
(
"More for you"
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.025
,
alignment
:
.
center
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.02
)
.
font
(
.
system
(
size
:
15
))
.
fontWeight
(
.
medium
)
.
font
(
.
system
(
size
:
16
))
.
foregroundColor
(
Color
(
red
:
0.20784313725490197
,
green
:
0.3176470588235294
,
blue
:
0.40784313725490196
))
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
*
0.1
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
padding
(
.
vertical
,
10
)
}
}
...
...
@@ -168,7 +176,7 @@ struct MoreForYouView: View {
.
padding
(
.
top
,
self
.
uiscreen
.
height
*
0.04
)
.
padding
(
.
bottom
,
self
.
uiscreen
.
height
*
0.05
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
*
0.9
)
.
frame
(
maxWidth
:
.
infinity
,
maxHeight
:
.
infinity
)
.
background
(
LinearGradient
(
gradient
:
Gradient
(
colors
:
[
Color
(
hex
:
0x1AADCC
),
Color
(
hex
:
0x83C062
)]),
startPoint
:
.
top
,
endPoint
:
.
bottom
)
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.h
View file @
444b84d
...
...
@@ -18,8 +18,8 @@
-
(
void
)
setToStage
;
-
(
void
)
setLang
:(
NSString
*
)
lang
;
-
(
UIViewController
*
)
openCoupons
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openCoupon
:(
UIView
*
)
parentView
coupon
:
(
NSDictionary
*
)
coupon
;
-
(
UIViewController
*
)
openCouponBarcode
:(
UIView
*
)
parentView
coupon
:
(
NSDictionary
*
)
coupon
;
//
- (UIViewController *) openCoupon:(UIView*) parentView coupon:(NSDictionary*) coupon;
//
- (UIViewController *) openCouponBarcode:(UIView*) parentView coupon:(NSDictionary*) coupon;
-
(
UIViewController
*
)
openGifts
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openAllGifts
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openOldCoupons
:(
UIView
*
)
parentView
;
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
View file @
444b84d
...
...
@@ -53,17 +53,17 @@ NSString *LANG;
return
couponsViewController
;
}
-
(
UIViewController
*
)
openCoupon
:
(
UIView
*
)
parentView
coupon
:
(
NSDictionary
*
)
coupon
{
UIViewController
*
couponViewController
=
[
CouponViewInterface
couponViewController
:
parentView
:
coupon
];
return
couponViewController
;
}
-
(
UIViewController
*
)
openCouponBarcode
:
(
UIView
*
)
parentView
coupon
:
(
NSDictionary
*
)
coupon
{
UIViewController
*
couponBarcodeViewController
=
[
CouponBarcodeViewInterface
couponBarcodeViewController
:
parentView
:
coupon
];
return
couponBarcodeViewController
;
}
//
- (UIViewController *) openCoupon:(UIView*) parentView coupon:(NSDictionary*) coupon {
//
//
UIViewController *couponViewController = [CouponViewInterface couponViewController:parentView :coupon];
//
return couponViewController;
//
}
//
//
- (UIViewController *) openCouponBarcode:(UIView*) parentView coupon:(NSDictionary*) coupon {
//
//
UIViewController *couponBarcodeViewController = [CouponBarcodeViewInterface couponBarcodeViewController:parentView :coupon];
//
return couponBarcodeViewController;
//
}
-
(
UIViewController
*
)
openGifts
:
(
UIView
*
)
parentView
{
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WalletView.swift
View file @
444b84d
...
...
@@ -39,21 +39,29 @@ extension WalletView {
var
body
:
some
View
{
HStack
{
Button
(
action
:
goBack
)
{
HStack
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.022
,
height
:
self
.
uiscreen
.
height
*
0.02
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.015
)
}
}
HStack
(
alignment
:
.
center
)
{
Button
{
// Button Action
goBack
()
}
label
:
{
Image
(
"ic_back"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
self
.
uiscreen
.
height
*
0.025
,
height
:
self
.
uiscreen
.
height
*
0.02
)
}
Text
(
"My loyalty wallet"
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.025
,
alignment
:
.
center
)
.
offset
(
y
:
self
.
uiscreen
.
height
*
0.02
)
.
font
(
.
system
(
size
:
15
))
.
fontWeight
(
.
medium
)
.
font
(
.
system
(
size
:
16
))
.
foregroundColor
(
Color
(
red
:
0.20784313725490197
,
green
:
0.3176470588235294
,
blue
:
0.40784313725490196
))
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
*
0.1
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
padding
(
.
vertical
,
10
)
}
}
...
...
@@ -329,7 +337,7 @@ struct WalletView: View {
ScrollView
(
showsIndicators
:
false
)
{
linearView
(
data
:
data
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
*
0.78
)
.
frame
(
maxWidth
:
.
infinity
,
maxHeight
:
.
infinity
)
}
.
frame
(
width
:
self
.
uiscreen
.
width
,
height
:
self
.
uiscreen
.
height
)
...
...
Please
register
or
login
to post a comment