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 19:00:12 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
19fc8669c210fa5400a546baf286b0a1175f49a1
19fc8669
1 parent
d235f772
CouponBarcodeViewController ui fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
19fc866
...
...
@@ -194,13 +194,13 @@ import AVFoundation
expirationLabel
.
text
=
"Το κουπόνι ισχύει έως "
+
(
coupon
?
.
expiration
??
""
)
redeemButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-SemiBold"
,
size
:
1
8
)
redeemButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-SemiBold"
,
size
:
1
7
)
redeemButton
.
setTitle
(
"Δώρισέ το"
,
for
:
.
normal
)
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
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
55
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
@@ -210,12 +210,12 @@ import AVFoundation
// redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
// }
mapButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
1
8
)
mapButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
1
7
)
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
:
44
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
mapButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
mapButton
.
intrinsicContentSize
.
width
,
height
:
55
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
28
,
bottom
:
0
,
right
:
28
)
mapButton
.
backgroundColor
=
.
clear
mapButton
.
layer
.
borderWidth
=
2
mapButton
.
layer
.
borderColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
.
cgColor
...
...
@@ -268,7 +268,7 @@ import AVFoundation
// mapButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
// }
termsButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
1
6
)
termsButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
1
5
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
termsButton
.
setTitle
(
"Όροι χρήσης"
,
for
:
.
normal
)
termsButton
.
setTitleColor
(
UIColor
(
red
:
0.13
,
green
:
0.13
,
blue
:
0.13
,
alpha
:
1.00
),
for
:
.
normal
)
...
...
@@ -281,9 +281,9 @@ import AVFoundation
let
htmlText
=
couponSetData
?
.
terms
??
""
termsTextView
.
attributedText
=
htmlText
.
htmlToAttributedString
termsTextView
.
font
=
UIFont
(
name
:
"PeridotPE-Regular"
,
size
:
1
5
)
termsTextView
.
font
=
UIFont
(
name
:
"PeridotPE-Regular"
,
size
:
1
6
)
termsTextView
.
textColor
=
UIColor
(
red
:
0.62
,
green
:
0.62
,
blue
:
0.61
,
alpha
:
1.00
)
termsTextView
.
textAlignment
=
.
center
termsTextView
.
textAlignment
=
.
left
termsTextView
.
isScrollEnabled
=
false
termsTextView
.
isUserInteractionEnabled
=
true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
19fc866
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment