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-13 19:04:41 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
292eeae6c8e38cf704e078be2c51111e12e33db7
292eeae6
1 parent
e03a451c
fix buttons ui at CouponViewController
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
16 deletions
SwiftWarplyFramework/.DS_Store
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/.DS_Store
View file @
292eeae
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
292eeae
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
292eeae
...
...
@@ -50,10 +50,21 @@ import UIKit
nameLabel
.
text
=
couponset
?
.
name
??
""
descriptionLabel
.
text
=
couponset
?
.
short_description
??
""
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.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"
),
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
=
couponset
?
.
terms
??
""
termsTextView
.
attributedText
=
htmlText
.
htmlToAttributedString
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
292eeae
...
...
@@ -1237,14 +1237,11 @@
<constraints>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"n2w-Tx-hhO"
/>
</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=
"S8k-2D-tGT"
eventType=
"touchUpInside"
id=
"W1u-Fc-1nm"
/>
</connections>
...
...
@@ -1254,13 +1251,12 @@
<constraints>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"O7T-ug-rTB"
/>
</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.25490196078431371"
green=
"0.33333333333333331"
blue=
"0.39215686274509803"
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.25490196078431371"
green=
"0.33333333333333331"
blue=
"0.39215686274509803"
alpha=
"0.84705882349999995"
colorSpace=
"calibratedRGB"
/>
<preferredSymbolConfiguration
key=
"preferredSymbolConfiguration"
/>
</state>
<connections>
<action
selector=
"termsButtonAction:"
destination=
"S8k-2D-tGT"
eventType=
"touchUpInside"
id=
"Cdz-mV-gqb"
/>
</connections>
...
...
Please
register
or
login
to post a comment