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-07-14 11:22:15 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5bd44f0031c1efee689d748b34b76460f1aef8a7
5bd44f00
1 parent
7460567f
fix CouponBarcodeViewController btn ui
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
21 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
5bd44f0
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
5bd44f0
...
...
@@ -78,10 +78,21 @@ import AVFoundation
expirationLabel
.
text
=
"Το κουπόνι ισχύει έως "
+
(
coupon
?
.
expiration
??
""
)
redeemButton
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
,
weight
:
.
medium
)
redeemButton
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
,
weight
:
.
semibold
)
redeemButton
.
setTitle
(
"Κάντο δώρο!"
,
for
:
.
normal
)
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
12.0
termsButton
.
titleLabel
?
.
font
=
.
systemFont
(
ofSize
:
15.0
,
weight
:
.
semibold
)
termsButton
.
titleLabel
?
.
font
=
.
systemFont
(
ofSize
:
15.0
,
weight
:
.
medium
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
termsButton
.
setTitle
(
"Όροι χρήσης"
,
for
:
.
normal
)
termsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
semanticContentAttribute
=
.
forceRightToLeft
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
);
let
htmlText
=
couponSetData
?
.
terms
??
""
termsTextView
.
attributedText
=
htmlText
.
htmlToAttributedString
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
5bd44f0
...
...
@@ -1047,40 +1047,36 @@
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8cR-Rc-YMJ"
>
<rect
key=
"frame"
x=
"83"
y=
"751"
width=
"248"
height=
"
5
0"
/>
<rect
key=
"frame"
x=
"83"
y=
"751"
width=
"248"
height=
"
4
0"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"
5
0"
id=
"ccg-NP-FIH"
/>
<constraint
firstAttribute=
"height"
constant=
"
4
0"
id=
"ccg-NP-FIH"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
/>
<buttonConfiguration
key=
"configuration"
style=
"plain"
title=
"Κάντο δώρο!"
>
<backgroundConfiguration
key=
"background"
cornerRadius=
"12"
>
<color
key=
"backgroundColor"
red=
"0.47450980390000003"
green=
"0.74901960779999999"
blue=
"0.078431372550000003"
alpha=
"0.84705882349999995"
colorSpace=
"calibratedRGB"
/>
</backgroundConfiguration>
<fontDescription
key=
"titleFontDescription"
type=
"system"
weight=
"medium"
pointSize=
"15"
/>
<color
key=
"baseForegroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</buttonConfiguration>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"medium"
pointSize=
"15"
/>
<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"
/>
</state>
<connections>
<action
selector=
"redeemButtomAction:"
destination=
"CDt-eI-msA"
eventType=
"touchUpInside"
id=
"0pY-lD-17H"
/>
</connections>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8UD-WL-JB7"
>
<rect
key=
"frame"
x=
"103.5"
y=
"8
1
1"
width=
"207"
height=
"50"
/>
<rect
key=
"frame"
x=
"103.5"
y=
"8
0
1"
width=
"207"
height=
"50"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"xdq-YS-AL4"
/>
</constraints>
<inset
key=
"imageEdgeInsets"
minX=
"5"
minY=
"0.0"
maxX=
"0.0"
maxY=
"0.0"
/>
<state
key=
"normal"
title=
"Button"
/>
<buttonConfiguration
key=
"configuration"
style=
"plain"
image=
"ic_down_dark"
imagePlacement=
"trailing"
title=
"Όροι χρήσης"
imagePadding=
"5"
>
<preferredSymbolConfiguration
key=
"preferredSymbolConfigurationForImage"
/>
<fontDescription
key=
"titleFontDescription"
type=
"system"
weight=
"semibold"
pointSize=
"15"
/>
<color
key=
"baseForegroundColor"
red=
"0.25490196079999999"
green=
"0.33333333329999998"
blue=
"0.3921568627"
alpha=
"0.84705882349999995"
colorSpace=
"calibratedRGB"
/>
</buttonConfiguration>
<fontDescription
key=
"fontDescription"
type=
"system"
weight=
"semibold"
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=
"0.84705882349999995"
colorSpace=
"calibratedRGB"
/>
<preferredSymbolConfiguration
key=
"preferredSymbolConfiguration"
/>
</state>
<connections>
<action
selector=
"termsButtonAction:"
destination=
"CDt-eI-msA"
eventType=
"touchUpInside"
id=
"zrs-az-yjI"
/>
</connections>
</button>
<textView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
editable=
"NO"
textAlignment=
"center"
selectable=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"xjX-HZ-MpD"
>
<rect
key=
"frame"
x=
"20"
y=
"8
7
1"
width=
"374"
height=
"0.0"
/>
<rect
key=
"frame"
x=
"20"
y=
"8
6
1"
width=
"374"
height=
"0.0"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
<constraint
firstAttribute=
"height"
id=
"3GU-tg-S3t"
/>
...
...
Please
register
or
login
to post a comment