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
Manos Chorianopoulos
2023-04-27 18:42:16 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
44222a96678b94a0fe06457a44c04abde715f1d3
44222a96
1 parent
fb8c3d44
redesign feedback 2 part 1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
22 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ActiveCodeTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
44222a9
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ActiveCodeTableViewCell.swift
View file @
44222a9
...
...
@@ -52,7 +52,7 @@ import UIKit
self
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
self
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
self
.
layer
.
shadowOpacity
=
1.0
self
.
layer
.
shadowRadius
=
3
.0
self
.
layer
.
shadowRadius
=
1
.0
activeCodeView
.
layer
.
cornerRadius
=
16.5
activeCodeView
.
layer
.
borderWidth
=
1
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
44222a9
...
...
@@ -76,8 +76,8 @@ import SwiftEventBus
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
16.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
5
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
0
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
25
,
bottom
:
0
,
right
:
25
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
44222a9
...
...
@@ -203,8 +203,8 @@ import AVFoundation
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
16.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
5
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
0
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
25
,
bottom
:
0
,
right
:
25
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
@@ -218,8 +218,8 @@ import AVFoundation
mapButton
.
setTitle
(
"Δες τα καταστήματα"
,
for
:
.
normal
)
mapButton
.
setTitleColor
(
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
),
for
:
.
normal
)
mapButton
.
layer
.
cornerRadius
=
15.0
mapButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
mapButton
.
intrinsicContentSize
.
width
,
height
:
5
5
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
mapButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
mapButton
.
intrinsicContentSize
.
width
,
height
:
5
0
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
25
,
bottom
:
0
,
right
:
25
)
mapButton
.
backgroundColor
=
.
clear
mapButton
.
layer
.
borderWidth
=
2
mapButton
.
layer
.
borderColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
.
cgColor
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
44222a9
...
...
@@ -99,8 +99,8 @@ import SwiftEventBus
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
16.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
5
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
0
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
25
,
bottom
:
0
,
right
:
25
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
44222a9
...
...
@@ -47,7 +47,7 @@ import UIKit
self
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
self
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
self
.
layer
.
shadowOpacity
=
1.0
self
.
layer
.
shadowRadius
=
3
.0
self
.
layer
.
shadowRadius
=
1
.0
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
View file @
44222a9
...
...
@@ -38,7 +38,7 @@ import UIKit
self
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
self
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
self
.
layer
.
shadowOpacity
=
1.0
self
.
layer
.
shadowRadius
=
3
.0
self
.
layer
.
shadowRadius
=
1
.0
inboxView
.
layer
.
cornerRadius
=
16.0
inboxView
.
clipsToBounds
=
true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
44222a9
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
44222a9
...
...
@@ -104,8 +104,8 @@ import SwiftEventBus
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
16.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
5
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
5
0
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
25
,
bottom
:
0
,
right
:
25
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
44222a9
...
...
@@ -96,8 +96,8 @@ import SwiftEventBus
activateButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
activateButton
.
backgroundColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
activateButton
.
layer
.
cornerRadius
=
16.0
activateButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
activateButton
.
intrinsicContentSize
.
width
,
height
:
5
5
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
activateButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
activateButton
.
intrinsicContentSize
.
width
,
height
:
5
0
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
25
,
bottom
:
0
,
right
:
25
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
44222a9
...
...
@@ -128,16 +128,16 @@ import SwiftEventBus
if
(
profile
!=
nil
&&
!
(
profile
?
.
_image_url
is
NSNull
)
&&
profile
?
.
_image_url
!=
nil
&&
profile
?
.
_image_url
!=
""
)
{
profileImage
.
layer
.
cornerRadius
=
19
profileImage
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
,
.
layerMaxXMaxYCorner
]
// Top left, bottom right corner radius
profileImage
.
layer
.
borderWidth
=
1
profileImage
.
layer
.
borderColor
=
UIColor
(
red
:
0.90
,
green
:
0.90
,
blue
:
0.90
,
alpha
:
1.00
)
.
cgColor
profileImage
.
load
(
link
:
profile
?
.
_image_url
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
}
else
{
profileImage
.
image
=
UIImage
(
named
:
"default_profile_image_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
}
profileImage
.
layer
.
cornerRadius
=
19
profileImage
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
,
.
layerMaxXMaxYCorner
]
// Top left, bottom right corner radius
profileImage
.
layer
.
borderWidth
=
1
profileImage
.
layer
.
borderColor
=
UIColor
(
red
:
0.90
,
green
:
0.90
,
blue
:
0.90
,
alpha
:
1.00
)
.
cgColor
print
(
"Profile Name: "
+
(
profile
?
.
_firstname
??
""
)
+
" "
+
(
profile
?
.
_lastname
??
""
))
profileNameLabel
.
text
=
(
profile
?
.
_firstname
??
""
)
+
" "
+
(
profile
?
.
_lastname
??
""
)
...
...
@@ -185,7 +185,7 @@ import SwiftEventBus
dfyEarnBannerView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
dfyEarnBannerView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
dfyEarnBannerView
.
layer
.
shadowOpacity
=
1.0
dfyEarnBannerView
.
layer
.
shadowRadius
=
3
.0
dfyEarnBannerView
.
layer
.
shadowRadius
=
1
.0
// var totalCouponValue = swiftApi().getDealsCouponsSum()
...
...
@@ -249,7 +249,7 @@ import SwiftEventBus
couponEarnView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
couponEarnView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
couponEarnView
.
layer
.
shadowOpacity
=
1.0
couponEarnView
.
layer
.
shadowRadius
=
3
.0
couponEarnView
.
layer
.
shadowRadius
=
1
.0
// let totalCouponDiscount = Float(round(100 * loyaltyBadge._value) / 100)
var
totalCouponDiscountString
=
"0"
...
...
Please
register
or
login
to post a comment