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
2022-09-23 18:08:42 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4410fb091db5c39fafa4a5a6975c7b9449b162ae
4410fb09
1 parent
959aa5f4
fix showBarcodeButton icon
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
4410fb0
...
...
@@ -95,6 +95,7 @@ import AVFoundation
showBarcodeButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
showBarcodeButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
showBarcodeButton
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
0
,
bottom
:
0
,
right
:
5
);
showBarcodeButton
.
imageView
?
.
layer
.
transform
=
CATransform3DMakeScale
(
0.8
,
0.8
,
0.8
)
expirationLabel
.
text
=
"Το κουπόνι ισχύει έως "
+
(
coupon
?
.
expiration
??
""
)
...
...
@@ -119,6 +120,7 @@ import AVFoundation
termsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
termsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
termsButton
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
0
,
bottom
:
0
,
right
:
5
);
termsButton
.
imageView
?
.
layer
.
transform
=
CATransform3DMakeScale
(
0.8
,
0.8
,
0.8
)
let
htmlText
=
couponSetData
?
.
terms
??
""
termsTextView
.
attributedText
=
htmlText
.
htmlToAttributedString
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
4410fb0
...
...
@@ -75,6 +75,7 @@ import SwiftEventBus
termsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
termsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
termsButton
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
0
,
bottom
:
0
,
right
:
5
);
termsButton
.
imageView
?
.
layer
.
transform
=
CATransform3DMakeScale
(
0.8
,
0.8
,
0.8
)
let
htmlText
=
couponset
?
.
terms
??
""
termsTextView
.
attributedText
=
htmlText
.
htmlToAttributedString
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
4410fb0
...
...
@@ -82,13 +82,12 @@ import UIKit
// 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.png"
),
for
:
.
normal
)
// TODO: UNCOMMENT
// moreButton.setImage(UIImage(named: "ic_down_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
),
for
:
.
normal
)
moreButton
.
semanticContentAttribute
=
.
forceRightToLeft
moreButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
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
)
// let htmlText = ccms?._description ?? ""
// moreTextView.attributedText = htmlText.htmlToAttributedString
...
...
Please
register
or
login
to post a comment