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-28 16:22:18 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bae6d3c46d653db2e7297b4ad6b9729761b94837
bae6d3c4
1 parent
06639709
UnifiedCouponBarcodeViewController fixes
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
16 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
bae6d3c
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
bae6d3c
...
...
@@ -43,12 +43,6 @@ import UIKit
super
.
awakeFromNib
()
// Initialization code
// Add shadow
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
=
1.0
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
borderView
.
addDashedBorderVertical
(
color
:
UIColor
(
red
:
0.62
,
green
:
0.62
,
blue
:
0.61
,
alpha
:
1.00
),
width
:
1.0
,
height
:
110.0
)
...
...
@@ -73,6 +67,12 @@ import UIKit
// COUPON: coupon, expiration, discount, status
// MERCHANT: _img_preview,_admin_name
// Add shadow
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
=
1.0
let
merchantList
:
Array
<
swiftApi
.
MerchantModel
>
=
swiftApi
()
.
getMerchantList
()
let
couponSetData
:
swiftApi
.
CouponSetItemModel
?
=
coupon
.
couponset_data
...
...
@@ -106,6 +106,12 @@ import UIKit
// COUPON: coupon, expiration, discount, status
// MERCHANT: _img_preview,_admin_name
// // Add shadow
contentView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
contentView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
contentView
.
layer
.
shadowOpacity
=
1.0
contentView
.
layer
.
shadowRadius
=
1.0
expirationLabel
.
isHidden
=
true
expirationRedView
.
isHidden
=
true
expirationLabel
.
text
=
""
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
bae6d3c
...
...
@@ -3340,14 +3340,14 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
hidesAccessoryWhenEditing=
"NO"
indentationLevel=
"1"
indentationWidth=
"0.0"
reuseIdentifier=
"CouponsTableViewCellId"
id=
"TAK-Ug-AzU"
customClass=
"CouponsTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"869"
width=
"414"
height=
"6
9
.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"869"
width=
"414"
height=
"6
6
.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"TAK-Ug-AzU"
id=
"LFe-Vj-kjJ"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"6
9
.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"6
6
.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"35i-Iq-TId"
>
<rect
key=
"frame"
x=
"10"
y=
"
5
"
width=
"394"
height=
"64.5"
/>
<rect
key=
"frame"
x=
"10"
y=
"
0.0
"
width=
"394"
height=
"64.5"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"coupon_bg"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"58G-jP-FMr"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"64.5"
/>
...
...
@@ -3455,9 +3455,9 @@
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"35i-Iq-TId"
firstAttribute=
"leading"
secondItem=
"LFe-Vj-kjJ"
secondAttribute=
"leading"
constant=
"10"
id=
"3hq-3Z-4i8"
/>
<constraint
firstItem=
"35i-Iq-TId"
firstAttribute=
"top"
secondItem=
"LFe-Vj-kjJ"
secondAttribute=
"top"
constant=
"5"
id=
"Ex4-yD-ujb"
/>
<constraint
firstItem=
"35i-Iq-TId"
firstAttribute=
"top"
secondItem=
"LFe-Vj-kjJ"
secondAttribute=
"top"
id=
"Ex4-yD-ujb"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"35i-Iq-TId"
secondAttribute=
"trailing"
constant=
"10"
id=
"GdO-6L-lwn"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"35i-Iq-TId"
secondAttribute=
"bottom"
id=
"Qim-cz-Ryu"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"35i-Iq-TId"
secondAttribute=
"bottom"
constant=
"2"
id=
"Qim-cz-Ryu"
/>
</constraints>
</tableViewCellContentView>
<color
key=
"backgroundColor"
red=
"0.94901960784313721"
green=
"0.94901960784313721"
blue=
"0.95294117647058818"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
@@ -3475,7 +3475,7 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"UnifiedCouponBCFooterTableViewCell"
id=
"LD5-ES-J67"
customClass=
"UnifiedCouponBCFooterTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"93
8
.5"
width=
"414"
height=
"160"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"93
5
.5"
width=
"414"
height=
"160"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"LD5-ES-J67"
id=
"DmN-AA-8n5"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"160"
/>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBarcodeViewController.swift
View file @
bae6d3c
...
...
@@ -201,7 +201,7 @@ extension UnifiedCouponBarcodeViewController: UITableViewDelegate, UITableViewDa
}
else
if
(
section
==
1
)
{
if
(
couponsVisible
==
true
)
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
8
))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
12
))
view
.
backgroundColor
=
UIColor
(
red
:
0.95
,
green
:
0.95
,
blue
:
0.95
,
alpha
:
1.00
)
return
view
...
...
@@ -220,7 +220,7 @@ extension UnifiedCouponBarcodeViewController: UITableViewDelegate, UITableViewDa
}
else
if
(
section
==
1
)
{
if
(
couponsVisible
==
true
)
{
return
8
.0
return
12
.0
}
else
{
return
0.0
}
...
...
@@ -236,7 +236,7 @@ extension UnifiedCouponBarcodeViewController: UITableViewDelegate, UITableViewDa
}
else
if
(
section
==
1
)
{
if
(
couponsVisible
==
true
)
{
return
8
.0
return
2
.0
}
else
{
return
0.0
}
...
...
@@ -252,7 +252,7 @@ extension UnifiedCouponBarcodeViewController: UITableViewDelegate, UITableViewDa
}
else
if
(
section
==
1
)
{
if
(
couponsVisible
==
true
)
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
8
))
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
tableView
.
frame
.
width
,
height
:
2
))
view
.
backgroundColor
=
UIColor
(
red
:
0.95
,
green
:
0.95
,
blue
:
0.95
,
alpha
:
1.00
)
return
view
...
...
Please
register
or
login
to post a comment