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-18 11:12:18 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc4626f17805b8cd72666e5a883c6c1ec51dd625
dc4626f1
1 parent
069db5b7
redesigns TelcoViewController
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
50 deletions
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
dc4626f
...
...
@@ -4555,9 +4555,9 @@
<rect
key=
"frame"
x=
"20"
y=
"220"
width=
"70"
height=
"70"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"G7w-Tk-Yfm"
>
<rect
key=
"frame"
x=
"10"
y=
"2
4"
width=
"50"
height=
"22
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro
"
pointSize=
"19"
/>
<color
key=
"textColor"
red=
"0.1
3333333333333333"
green=
"0.66274509803921566"
blue=
"0.70980392156862748
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"10"
y=
"2
3.5"
width=
"50"
height=
"23
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-SBold"
family=
"Peridot PE
"
pointSize=
"19"
/>
<color
key=
"textColor"
red=
"0.1
2941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -4572,25 +4572,25 @@
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"yXI-Ds-V0T"
>
<rect
key=
"frame"
x=
"100"
y=
"246
.5"
width=
"294"
height=
"17
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Regular"
family=
"PF Square Sans Pro
"
pointSize=
"15"
/>
<color
key=
"textColor"
red=
"0.
25490196078431371"
green=
"0.33333333333333331"
blue=
"0.39215686274509803
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"100"
y=
"246
"
width=
"294"
height=
"18
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"15"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7Bc-ly-ehN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"32
4.
5"
width=
"414"
height=
"2"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"325"
width=
"414"
height=
"2"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"2"
id=
"sgv-gT-iEr"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Xfg-Zl-DTT"
>
<rect
key=
"frame"
x=
"178
.5"
y=
"310"
width=
"57"
height=
"30
.5"
/>
<rect
key=
"frame"
x=
"178
"
y=
"310"
width=
"58.5"
height=
"31
.5"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vZf-KA-Yki"
>
<rect
key=
"frame"
x=
"10"
y=
"8"
width=
"3
7"
height=
"17
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Regular"
family=
"PF Square Sans Pro
"
pointSize=
"15"
/>
<color
key=
"textColor"
red=
"0.
25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"10"
y=
"8"
width=
"3
8.5"
height=
"18
.5"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"15"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -4603,9 +4603,9 @@
</constraints>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"title"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"XJ0-lK-2fk"
>
<rect
key=
"frame"
x=
"20"
y=
"37
0.5"
width=
"374"
height=
"20
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Regular"
family=
"PF Square Sans Pro
"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.
25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"custom"
customC
olorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"20"
y=
"37
1.5"
width=
"374"
height=
"21
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234"
alpha=
"1"
c
olorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"description"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Toi-hN-Bn7"
>
...
...
@@ -4615,11 +4615,11 @@
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uDO-0Z-xFa"
>
<rect
key=
"frame"
x=
"1
56.5"
y=
"450.5"
width=
"101"
height=
"44
"
/>
<rect
key=
"frame"
x=
"1
49"
y=
"452.5"
width=
"116"
height=
"55
"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"
44
"
id=
"Mve-Wm-jeX"
/>
<constraint
firstAttribute=
"height"
constant=
"
55
"
id=
"Mve-Wm-jeX"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Medium"
family=
"PF Square Sans Pro"
pointSize=
"16
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-SBold"
family=
"Peridot PE"
pointSize=
"17
"
/>
<inset
key=
"imageEdgeInsets"
minX=
"0.0"
minY=
"0.0"
maxX=
"2.2250738585072014e-308"
maxY=
"0.0"
/>
<state
key=
"normal"
title=
"Ενεργοποίηση"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
...
...
@@ -4629,14 +4629,14 @@
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ulI-Td-g6v"
>
<rect
key=
"frame"
x=
"103.5"
y=
"5
14
.5"
width=
"207"
height=
"40"
/>
<rect
key=
"frame"
x=
"103.5"
y=
"5
27
.5"
width=
"207"
height=
"40"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"40"
id=
"72j-BL-Ejm"
/>
</constraints>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Regular"
family=
"PF Square Sans Pro"
pointSize=
"16
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Bold"
family=
"Peridot PE"
pointSize=
"15
"
/>
<inset
key=
"imageEdgeInsets"
minX=
"0.0"
minY=
"0.0"
maxX=
"5"
maxY=
"0.0"
/>
<state
key=
"normal"
title=
"Δες Περισσότερα"
image=
"ic_down_dark"
>
<color
key=
"titleColor"
red=
"0.
25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"1"
colorSpace=
"custom"
customC
olorSpace=
"calibratedRGB"
/>
<color
key=
"titleColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234"
alpha=
"1"
c
olorSpace=
"calibratedRGB"
/>
<preferredSymbolConfiguration
key=
"preferredSymbolConfiguration"
/>
</state>
<connections>
...
...
@@ -4644,13 +4644,13 @@
</connections>
</button>
<textView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
editable=
"NO"
selectable=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mCl-kM-ssj"
>
<rect
key=
"frame"
x=
"20"
y=
"5
64
.5"
width=
"374"
height=
"0.0"
/>
<rect
key=
"frame"
x=
"20"
y=
"5
77
.5"
width=
"374"
height=
"0.0"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"Uys-zo-ERe"
/>
</constraints>
<color
key=
"textColor"
red=
"0.
25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Regular"
family=
"PF Square Sans Pro"
pointSize=
"13
"
/>
<color
key=
"textColor"
red=
"0.
61568627450980395"
green=
"0.61568627450980395"
blue=
"0.61176470588235299
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE"
pointSize=
"16
"
/>
<textInputTraits
key=
"textInputTraits"
autocapitalizationType=
"sentences"
/>
</textView>
</subviews>
...
...
@@ -4703,7 +4703,7 @@
<viewLayoutGuide
key=
"contentLayoutGuide"
id=
"BMi-Lt-iHA"
/>
<viewLayoutGuide
key=
"frameLayoutGuide"
id=
"lpe-11-PKD"
/>
</scrollView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
ambiguous=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WsP-XD-haT"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WsP-XD-haT"
>
<rect
key=
"frame"
x=
"0.0"
y=
"420"
width=
"414"
height=
"11.5"
/>
</imageView>
</subviews>
...
...
@@ -4721,6 +4721,7 @@
<variation
key=
"default"
>
<mask
key=
"subviews"
>
<exclude
reference=
"6ch-LK-yKY"
/>
<exclude
reference=
"WsP-XD-haT"
/>
</mask>
</variation>
</view>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
dc4626f
...
...
@@ -54,22 +54,22 @@ import SwiftEventBus
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
let
image
=
UIImage
(
named
:
"top_border_line"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
!
var
aspectR
:
CGFloat
=
0.0
aspectR
=
image
.
size
.
width
/
image
.
size
.
height
topBorderLine
.
translatesAutoresizingMaskIntoConstraints
=
false
topBorderLine
.
image
=
image
topBorderLine
.
contentMode
=
.
scaleAspectFill
NSLayoutConstraint
.
activate
([
topBorderLine
.
topAnchor
.
constraint
(
equalTo
:
mainView
.
topAnchor
,
constant
:
0
),
topBorderLine
.
leadingAnchor
.
constraint
(
equalTo
:
mainView
.
leadingAnchor
,
constant
:
0
),
topBorderLine
.
trailingAnchor
.
constraint
(
equalTo
:
mainView
.
trailingAnchor
,
constant
:
0
),
topBorderLine
.
widthAnchor
.
constraint
(
equalToConstant
:
UIScreen
.
main
.
bounds
.
width
),
topBorderLine
.
heightAnchor
.
constraint
(
equalTo
:
topBorderLine
.
widthAnchor
,
multiplier
:
1
/
aspectR
)
])
//
let image = UIImage(named: "top_border_line", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)!
//
var aspectR: CGFloat = 0.0
//
//
aspectR = image.size.width/image.size.height
//
//
topBorderLine.translatesAutoresizingMaskIntoConstraints = false
//
topBorderLine.image = image
//
topBorderLine.contentMode = .scaleAspectFill
//
//
NSLayoutConstraint.activate([
//
topBorderLine.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
//
topBorderLine.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
//
topBorderLine.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
//
topBorderLine.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
//
topBorderLine.heightAnchor.constraint(equalTo: topBorderLine.widthAnchor, multiplier: 1/aspectR)
//
])
// scrollView.clipsToBounds = true
// scrollView.layer.cornerRadius = 30
...
...
@@ -91,13 +91,13 @@ import SwiftEventBus
borderLineView
.
applyGradient
(
colours
:
[
UIColor
(
rgb
:
0x0AA3CD
),
UIColor
(
rgb
:
0x6ECA43
)],
gradient
:
GradientOrientation
.
horizontal
,
cornerRadius
:
0.0
)
activateButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"P
FSquareSansPro-Medium"
,
size
:
18
)
activateButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"P
eridotPE-SemiBold"
,
size
:
17
)
activateButton
.
setTitle
(
"Ενεργοποίηση"
,
for
:
.
normal
)
activateButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
activateButton
.
backgroundColor
=
UIColor
(
red
:
0.
47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
activateButton
.
layer
.
cornerRadius
=
8
.0
activateButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
activateButton
.
intrinsicContentSize
.
width
,
height
:
44
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
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
:
55
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
...
...
@@ -108,13 +108,13 @@ import SwiftEventBus
// activateButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
// }
moreButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"P
FSquareSansPro-Regular"
,
size
:
16
)
moreButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"P
eridotPE-Bold"
,
size
:
15
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
moreButton
.
setTitle
(
"Δες Περισσότερα"
,
for
:
.
normal
)
moreButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark_2.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
moreButton
.
semanticContentAttribute
=
.
forceRightToLeft
moreButton
.
tintColor
=
UIColor
(
red
:
0.
21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
moreButton
.
tintColor
=
UIColor
(
red
:
0.
00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
1.00
)
moreButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
moreButton
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
0
,
bottom
:
0
,
right
:
5
);
moreButton
.
imageView
?
.
layer
.
transform
=
CATransform3DMakeScale
(
0.8
,
0.8
,
0.8
)
...
...
@@ -122,9 +122,9 @@ import SwiftEventBus
// let htmlText = ccms?._description ?? ""
// moreTextView.attributedText = htmlText.htmlToAttributedString
moreTextView
.
text
=
ccms
?
.
_termsAndConditions
??
""
moreTextView
.
font
=
UIFont
(
name
:
"P
FSquareSansPro-Regular"
,
size
:
13
)
moreTextView
.
textColor
=
UIColor
(
r
gb
:
0x415564
)
// moreTextView.textAlignment = .center
moreTextView
.
font
=
UIFont
(
name
:
"P
eridotPE-Regular"
,
size
:
16
)
moreTextView
.
textColor
=
UIColor
(
r
ed
:
0.62
,
green
:
0.62
,
blue
:
0.61
,
alpha
:
1.00
)
moreTextView
.
textAlignment
=
.
left
moreTextView
.
isScrollEnabled
=
false
toggleMore
()
...
...
Please
register
or
login
to post a comment