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-13 13:08:57 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b0fa29acab794e76b3e4abda4b9c8cfa40171547
b0fa29ac
1 parent
016a2b0a
redesign WalletVC, CouponsVC
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
73 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b0fa29a
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
b0fa29a
...
...
@@ -45,7 +45,7 @@ import UIKit
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
borderView
.
addDashedBorderVertical
(
color
:
UIColor
(
red
:
0.
44
,
green
:
0.44
,
blue
:
0.44
,
alpha
:
1.00
),
width
:
1.0
,
height
:
110.0
)
borderView
.
addDashedBorderVertical
(
color
:
UIColor
(
red
:
0.
62
,
green
:
0.62
,
blue
:
0.61
,
alpha
:
1.00
),
width
:
1.0
,
height
:
110.0
)
}
public
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
b0fa29a
...
...
@@ -25,15 +25,15 @@ import SwiftEventBus
setBackButton
()
setNavigationTitle
(
"Ενεργά κουπόνια"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_dark"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
//
backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
clipsToBounds
=
true
tableView
.
layer
.
cornerRadius
=
30
tableView
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
]
// Top left corner radius
tableView
.
contentInset
.
top
=
5
0
//
tableView.clipsToBounds = true
//
tableView.layer.cornerRadius = 30
//
tableView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius
tableView
.
contentInset
.
top
=
3
0
}
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
@@ -83,7 +83,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
}
public
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
1
2
0.0
+
8.0
return
1
3
0.0
+
8.0
// return UITableViewAutomaticDimension
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
b0fa29a
...
...
@@ -58,48 +58,48 @@
<color
key=
"sectionIndexBackgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
insetsLayoutMarginsFromSafeArea=
"NO"
selectionStyle=
"none"
hidesAccessoryWhenEditing=
"NO"
indentationLevel=
"1"
indentationWidth=
"0.0"
reuseIdentifier=
"CouponsTableViewCellId"
id=
"Ivk-7o-eVp"
customClass=
"CouponsTableViewCell"
customModule=
"SwiftWarplyFramework"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"414"
height=
"
116
.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"414"
height=
"
64
.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"Ivk-7o-eVp"
id=
"OpF-ry-8Pc"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
116
.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
64
.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JaN-ia-6ul"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"394"
height=
"
116
.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=
"2YB-QL-me8"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
116
.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
64
.5"
/>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"qgV-LI-5lL"
>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
96
.5"
/>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
44
.5"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"kWi-pp-keF"
>
<rect
key=
"frame"
x=
"104"
y=
"
5"
width=
"10"
height=
"106
.5"
/>
<rect
key=
"frame"
x=
"104"
y=
"
10"
width=
"10"
height=
"44
.5"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"10"
id=
"UQ1-xk-Qqc"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gWw-Mr-bn2"
>
<rect
key=
"frame"
x=
"119"
y=
"
15"
width=
"255"
height=
"20
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.
22745098039215686"
green=
"0.32156862745098036"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"119"
y=
"
-15.5"
width=
"255"
height=
"21
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Bold"
family=
"Peridot PE
"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
spacing=
"5"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"URC-i5-9Gw"
>
<rect
key=
"frame"
x=
"119"
y=
"
40"
width=
"255"
height=
"36
.5"
/>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
alignment=
"center"
spacing=
"5"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"URC-i5-9Gw"
>
<rect
key=
"frame"
x=
"119"
y=
"
10.5"
width=
"255"
height=
"43
.5"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ssk-9S-HMD"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"127.5"
height=
"
36
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Bold"
family=
"PF Square Sans Pro"
pointSize=
"31
"
/>
<color
key=
"textColor"
red=
"0.
22745098039215686"
green=
"0.32156862745098036"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"127.5"
height=
"
43
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Bold"
family=
"Peridot PE"
pointSize=
"35
"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"hWa-mr-cXD"
>
<rect
key=
"frame"
x=
"132.5"
y=
"
0.0"
width=
"122.5"
height=
"36.
5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
38039215686274508"
green=
"0.44313725490196076"
blue=
"0.50588235294117645
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"132.5"
y=
"
14.5"
width=
"122.5"
height=
"1
5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
61568627450980395"
green=
"0.61568627450980395"
blue=
"0.61176470588235299
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -109,9 +109,9 @@
</constraints>
</stackView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Kdt-I2-GtS"
>
<rect
key=
"frame"
x=
"119"
y=
"
87.5"
width=
"255"
height=
"14
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
38039215686274508"
green=
"0.44313725490196076"
blue=
"0.50588235294117645
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"119"
y=
"
59"
width=
"255"
height=
"15
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
61568627450980395"
green=
"0.61568627450980395"
blue=
"0.61176470588235299
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -123,20 +123,18 @@
<constraint
firstItem=
"URC-i5-9Gw"
firstAttribute=
"leading"
secondItem=
"kWi-pp-keF"
secondAttribute=
"trailing"
constant=
"5"
id=
"CAI-TE-31b"
/>
<constraint
firstItem=
"gWw-Mr-bn2"
firstAttribute=
"leading"
secondItem=
"kWi-pp-keF"
secondAttribute=
"trailing"
constant=
"5"
id=
"DIf-jd-4i9"
/>
<constraint
firstItem=
"2YB-QL-me8"
firstAttribute=
"top"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"top"
id=
"Kg9-3h-9yX"
/>
<constraint
firstItem=
"gWw-Mr-bn2"
firstAttribute=
"top"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"top"
constant=
"15"
id=
"L2J-sA-Qyz"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"2YB-QL-me8"
secondAttribute=
"trailing"
id=
"LKX-8Q-weK"
/>
<constraint
firstItem=
"kWi-pp-keF"
firstAttribute=
"top"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"top"
constant=
"
5
"
id=
"Nw1-Du-inS"
/>
<constraint
firstItem=
"kWi-pp-keF"
firstAttribute=
"top"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"top"
constant=
"
10
"
id=
"Nw1-Du-inS"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"2YB-QL-me8"
secondAttribute=
"bottom"
id=
"QuD-tm-o3p"
/>
<constraint
firstItem=
"2YB-QL-me8"
firstAttribute=
"leading"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"leading"
id=
"RGp-Mx-kq9"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"URC-i5-9Gw"
secondAttribute=
"trailing"
constant=
"20"
id=
"X88-Je-614"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Kdt-I2-GtS"
secondAttribute=
"bottom"
constant=
"15"
id=
"YOO-8b-oBD"
/>
<constraint
firstItem=
"qgV-LI-5lL"
firstAttribute=
"leading"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"leading"
constant=
"20"
id=
"Zz2-s3-Lli"
/>
<constraint
firstItem=
"URC-i5-9Gw"
firstAttribute=
"top"
relation=
"greaterThanOrEqual"
secondItem=
"gWw-Mr-bn2"
secondAttribute=
"bottom"
constant=
"5"
id=
"gv1-5w-f05"
/>
<constraint
firstItem=
"URC-i5-9Gw"
firstAttribute=
"top"
secondItem=
"gWw-Mr-bn2"
secondAttribute=
"bottom"
constant=
"5"
id=
"gv1-5w-f05"
/>
<constraint
firstItem=
"URC-i5-9Gw"
firstAttribute=
"centerY"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"centerY"
id=
"lCc-I4-VSe"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"kWi-pp-keF"
secondAttribute=
"bottom"
constant=
"
5
"
id=
"mqK-8D-WIR"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"kWi-pp-keF"
secondAttribute=
"bottom"
constant=
"
10
"
id=
"mqK-8D-WIR"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"gWw-Mr-bn2"
secondAttribute=
"trailing"
constant=
"20"
id=
"oL8-6u-dOS"
/>
<constraint
firstItem=
"qgV-LI-5lL"
firstAttribute=
"width"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"width"
multiplier=
"0.2"
id=
"pqq-lg-4bn"
/>
<constraint
firstItem=
"Kdt-I2-GtS"
firstAttribute=
"top"
relation=
"greaterThanOrEqual"
secondItem=
"URC-i5-9Gw"
secondAttribute=
"bottom"
constant=
"5"
id=
"rGz-OI-ook"
/>
<constraint
firstItem=
"Kdt-I2-GtS"
firstAttribute=
"top"
secondItem=
"URC-i5-9Gw"
secondAttribute=
"bottom"
constant=
"5"
id=
"rGz-OI-ook"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"qgV-LI-5lL"
secondAttribute=
"bottom"
constant=
"10"
id=
"ryN-Yr-NRM"
/>
<constraint
firstItem=
"qgV-LI-5lL"
firstAttribute=
"top"
secondItem=
"JaN-ia-6ul"
secondAttribute=
"top"
constant=
"10"
id=
"z0W-2B-JKp"
/>
</constraints>
...
...
@@ -168,7 +166,7 @@
</connections>
</tableView>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<color
key=
"backgroundColor"
red=
"0.94901960784313721"
green=
"0.94901960784313721"
blue=
"0.95294117647058818"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<constraints>
<constraint
firstItem=
"KhH-tg-FBN"
firstAttribute=
"top"
secondItem=
"FoX-v7-tak"
secondAttribute=
"top"
constant=
"2"
id=
"DSl-zy-v7y"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"KhH-tg-FBN"
secondAttribute=
"bottom"
id=
"Dk8-ID-x8T"
/>
...
...
@@ -179,6 +177,11 @@
<constraint
firstItem=
"KhH-tg-FBN"
firstAttribute=
"leading"
secondItem=
"FoX-v7-tak"
secondAttribute=
"leading"
id=
"oXI-zv-0nB"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"KhH-tg-FBN"
secondAttribute=
"trailing"
id=
"tAn-PH-mZ8"
/>
</constraints>
<variation
key=
"default"
>
<mask
key=
"subviews"
>
<exclude
reference=
"5rB-1e-ygb"
/>
</mask>
</variation>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"KbU-RX-se5"
/>
...
...
@@ -1685,48 +1688,48 @@
</view>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
insetsLayoutMarginsFromSafeArea=
"NO"
selectionStyle=
"none"
hidesAccessoryWhenEditing=
"NO"
indentationLevel=
"1"
indentationWidth=
"0.0"
reuseIdentifier=
"CouponsTableViewCellId"
id=
"PUP-z1-zvb"
customClass=
"CouponsTableViewCell"
customModule=
"SwiftWarplyFramework"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"718.5"
width=
"414"
height=
"
10
5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"718.5"
width=
"414"
height=
"
64.
5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"PUP-z1-zvb"
id=
"dt2-2B-okP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
10
5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
64.
5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FsY-Dp-PUQ"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"394"
height=
"
10
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=
"vZ4-HF-lwK"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
10
5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
64.
5"
/>
</imageView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"f2f-Lm-to3"
>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
8
5"
/>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
44.
5"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"zth-sP-rUI"
>
<rect
key=
"frame"
x=
"104"
y=
"
5"
width=
"10"
height=
"9
5"
/>
<rect
key=
"frame"
x=
"104"
y=
"
10"
width=
"10"
height=
"44.
5"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"10"
id=
"0jX-bF-I3k"
/>
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BAb-kn-pw0"
>
<rect
key=
"frame"
x=
"119"
y=
"
15"
width=
"255"
height=
"17
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.
2274509804"
green=
"0.32156862749999998"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"119"
y=
"
-15.5"
width=
"255"
height=
"21
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Bold"
family=
"Peridot PE
"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
spacing=
"5"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RJe-Li-bx3"
>
<rect
key=
"frame"
x=
"119"
y=
"
37"
width=
"255"
height=
"31
"
/>
<stackView
opaque=
"NO"
contentMode=
"scaleToFill"
alignment=
"center"
spacing=
"5"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RJe-Li-bx3"
>
<rect
key=
"frame"
x=
"119"
y=
"
10.5"
width=
"255"
height=
"43.5
"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wBw-w0-bGt"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"127.5"
height=
"
31
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Bold"
family=
"PF Square Sans Pro"
pointSize=
"31
"
/>
<color
key=
"textColor"
red=
"0.
2274509804"
green=
"0.32156862749999998"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"127.5"
height=
"
43.5
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Bold"
family=
"Peridot PE"
pointSize=
"35
"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Yd2-ue-tBk"
>
<rect
key=
"frame"
x=
"132.5"
y=
"
0.0"
width=
"122.5"
height=
"31
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
3803921569"
green=
"0.4431372549"
blue=
"0.50588235290000005
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"132.5"
y=
"
14.5"
width=
"122.5"
height=
"15
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
61568627450980395"
green=
"0.61568627450980395"
blue=
"0.61176470588235299
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -1736,32 +1739,30 @@
</constraints>
</stackView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"EEj-3C-9Td"
>
<rect
key=
"frame"
x=
"119"
y=
"
78"
width=
"255"
height=
"12
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
3803921569"
green=
"0.4431372549"
blue=
"0.50588235290000005
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"119"
y=
"
59"
width=
"255"
height=
"15
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.
61568627450980395"
green=
"0.61568627450980395"
blue=
"0.61176470588235299
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"BAb-kn-pw0"
secondAttribute=
"trailing"
constant=
"20"
id=
"1wy-YZ-1QM"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"zth-sP-rUI"
secondAttribute=
"bottom"
constant=
"
5
"
id=
"2Bk-P7-vqZ"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"zth-sP-rUI"
secondAttribute=
"bottom"
constant=
"
10
"
id=
"2Bk-P7-vqZ"
/>
<constraint
firstItem=
"RJe-Li-bx3"
firstAttribute=
"leading"
secondItem=
"zth-sP-rUI"
secondAttribute=
"trailing"
constant=
"5"
id=
"44O-pO-Gow"
/>
<constraint
firstItem=
"EEj-3C-9Td"
firstAttribute=
"leading"
secondItem=
"zth-sP-rUI"
secondAttribute=
"trailing"
constant=
"5"
id=
"5gC-oO-mvc"
/>
<constraint
firstItem=
"vZ4-HF-lwK"
firstAttribute=
"leading"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"leading"
id=
"5zH-Q8-HsV"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"vZ4-HF-lwK"
secondAttribute=
"bottom"
id=
"8eo-h4-Qj6"
/>
<constraint
firstItem=
"f2f-Lm-to3"
firstAttribute=
"width"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"width"
multiplier=
"0.2"
id=
"HRY-vF-zWg"
/>
<constraint
firstItem=
"BAb-kn-pw0"
firstAttribute=
"top"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"top"
constant=
"15"
id=
"NUQ-Nc-NYR"
/>
<constraint
firstItem=
"zth-sP-rUI"
firstAttribute=
"leading"
secondItem=
"f2f-Lm-to3"
secondAttribute=
"trailing"
constant=
"5"
id=
"WT1-xO-rY7"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"EEj-3C-9Td"
secondAttribute=
"bottom"
constant=
"15"
id=
"XAX-q3-he4"
/>
<constraint
firstItem=
"f2f-Lm-to3"
firstAttribute=
"top"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"top"
constant=
"10"
id=
"blg-R6-OfW"
/>
<constraint
firstItem=
"EEj-3C-9Td"
firstAttribute=
"top"
relation=
"greaterThanOrEqual"
secondItem=
"RJe-Li-bx3"
secondAttribute=
"bottom"
constant=
"5"
id=
"fVV-hr-2Zm"
/>
<constraint
firstItem=
"EEj-3C-9Td"
firstAttribute=
"top"
secondItem=
"RJe-Li-bx3"
secondAttribute=
"bottom"
constant=
"5"
id=
"fVV-hr-2Zm"
/>
<constraint
firstItem=
"f2f-Lm-to3"
firstAttribute=
"leading"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"leading"
constant=
"20"
id=
"hyu-XF-i7o"
/>
<constraint
firstItem=
"RJe-Li-bx3"
firstAttribute=
"top"
relation=
"greaterThanOrEqual"
secondItem=
"BAb-kn-pw0"
secondAttribute=
"bottom"
constant=
"5"
id=
"iBr-HU-lqb"
/>
<constraint
firstItem=
"RJe-Li-bx3"
firstAttribute=
"top"
secondItem=
"BAb-kn-pw0"
secondAttribute=
"bottom"
constant=
"5"
id=
"iBr-HU-lqb"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"vZ4-HF-lwK"
secondAttribute=
"trailing"
id=
"mNT-mP-5A5"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"f2f-Lm-to3"
secondAttribute=
"bottom"
constant=
"10"
id=
"ngt-YA-MIZ"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"EEj-3C-9Td"
secondAttribute=
"trailing"
constant=
"20"
id=
"oxZ-th-4YZ"
/>
<constraint
firstItem=
"zth-sP-rUI"
firstAttribute=
"top"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"top"
constant=
"
5
"
id=
"riW-4f-1J9"
/>
<constraint
firstItem=
"zth-sP-rUI"
firstAttribute=
"top"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"top"
constant=
"
10
"
id=
"riW-4f-1J9"
/>
<constraint
firstItem=
"vZ4-HF-lwK"
firstAttribute=
"top"
secondItem=
"FsY-Dp-PUQ"
secondAttribute=
"top"
id=
"u5F-Ed-lvs"
/>
<constraint
firstItem=
"BAb-kn-pw0"
firstAttribute=
"leading"
secondItem=
"zth-sP-rUI"
secondAttribute=
"trailing"
constant=
"5"
id=
"uzd-ax-gWN"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"RJe-Li-bx3"
secondAttribute=
"trailing"
constant=
"20"
id=
"wrL-Zn-xXy"
/>
...
...
@@ -1789,7 +1790,7 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"ActiveCodeTableViewCellId"
id=
"GBJ-mP-Cnk"
customClass=
"ActiveCodeTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
823.5
"
width=
"414"
height=
"100"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
783
"
width=
"414"
height=
"100"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"GBJ-mP-Cnk"
id=
"jwr-DB-aSm"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"100"
/>
...
...
@@ -1908,23 +1909,23 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"UnifiedCouponsTableViewCellId"
id=
"DUH-nG-QWi"
customClass=
"UnifiedCouponsTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
923.5"
width=
"414"
height=
"44
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
883"
width=
"414"
height=
"64.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"DUH-nG-QWi"
id=
"rx6-wA-MYI"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
44
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
64.5
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WW2-mP-ZJD"
>
<rect
key=
"frame"
x=
"10"
y=
"0.0"
width=
"394"
height=
"
44
"
/>
<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=
"Gde-3J-Ew9"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
44
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"394"
height=
"
64.5
"
/>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"87q-5c-uea"
>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
24
"
/>
<rect
key=
"frame"
x=
"20"
y=
"10"
width=
"79"
height=
"
44.5
"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XsA-Nw-7Pr"
>
<rect
key=
"frame"
x=
"18"
y=
"18"
width=
"43"
height=
"
0.0
"
/>
<rect
key=
"frame"
x=
"18"
y=
"18"
width=
"43"
height=
"
8.5
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</imageView>
</subviews>
...
...
@@ -1937,7 +1938,7 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"u97-5H-Y40"
>
<rect
key=
"frame"
x=
"104"
y=
"5"
width=
"10"
height=
"
34
"
/>
<rect
key=
"frame"
x=
"104"
y=
"5"
width=
"10"
height=
"
54.5
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"10"
id=
"Tcx-FG-KC0"
/>
...
...
@@ -1950,13 +1951,13 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
lineBreakMode=
"tailTruncation"
numberOfLines=
"3"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KJD-Db-B4t"
>
<rect
key=
"frame"
x=
"292.5"
y=
"
16
"
width=
"81.5"
height=
"12"
/>
<rect
key=
"frame"
x=
"292.5"
y=
"
26.5
"
width=
"81.5"
height=
"12"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.3803921569"
green=
"0.4431372549"
blue=
"0.50588235290000005"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"C5t-xz-oAO"
>
<rect
key=
"frame"
x=
"119"
y=
"
17
"
width=
"255"
height=
"12"
/>
<rect
key=
"frame"
x=
"119"
y=
"
37.5
"
width=
"255"
height=
"12"
/>
<fontDescription
key=
"fontDescription"
name=
"PFSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"12"
/>
<color
key=
"textColor"
red=
"0.3803921569"
green=
"0.4431372549"
blue=
"0.50588235290000005"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -2006,7 +2007,7 @@
</connections>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"WalletBadgesTableViewCellId"
id=
"TeS-tP-Ilh"
customClass=
"WalletBadgesTableViewCell"
customModule=
"SwiftWarplyFramework"
>
<rect
key=
"frame"
x=
"0.0"
y=
"9
6
7.5"
width=
"414"
height=
"44"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"9
4
7.5"
width=
"414"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"TeS-tP-Ilh"
id=
"FFV-uA-HHA"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"44"
/>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
b0fa29a
...
...
@@ -193,7 +193,7 @@ extension UIView {
let
lineLayer
=
CAShapeLayer
()
lineLayer
.
strokeColor
=
color
lineLayer
.
lineWidth
=
width
lineLayer
.
lineDashPattern
=
[
5
,
5
]
lineLayer
.
lineDashPattern
=
[
10
,
10
]
let
path
=
CGMutablePath
()
path
.
addLines
(
between
:
[
CGPoint
(
x
:
frameSize
.
width
/
2
,
y
:
0
),
CGPoint
(
x
:
frameSize
.
width
/
2
,
y
:
height
)])
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
b0fa29a
...
...
@@ -741,7 +741,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
}
else
if
(
indexPath
.
section
==
3
)
{
if
(
self
.
coupons
.
count
>
0
)
{
return
1
2
0.0
+
8.0
return
1
3
0.0
+
8.0
}
else
{
return
0.0
}
...
...
Please
register
or
login
to post a comment