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-08-31 18:05:24 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e4e469806db18f4595fac58bea36e07fd65ec9b8
e4e46980
1 parent
c2ae30fc
fix questionnaireButton at WalletVC
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
e4e4698
...
...
@@ -90,7 +90,7 @@ import SwiftEventBus
questionnaireButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
14
)
questionnaireButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
// questionnaireButton.sizeToFit()
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
questionnaireButton
.
intrinsicContentSize
.
height
)
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
26
)
questionnaireButton
.
applyGradient
(
colours
:
[
UIColor
(
red
:
0.40
,
green
:
0.77
,
blue
:
0.28
,
alpha
:
1.00
),
UIColor
(
red
:
0.10
,
green
:
0.66
,
blue
:
0.72
,
alpha
:
1.00
)],
gradient
:
GradientOrientation
.
horizontal
,
cornerRadius
:
7.0
)
// Shadow Color
questionnaireButton
.
layer
.
shadowColor
=
UIColor
(
red
:
0.33
,
green
:
0.38
,
blue
:
0.43
,
alpha
:
1.00
)
.
cgColor
...
...
@@ -98,12 +98,14 @@ import SwiftEventBus
questionnaireButton
.
layer
.
shadowOpacity
=
1.0
questionnaireButton
.
layer
.
shadowRadius
=
0.0
questionnaireButton
.
layer
.
masksToBounds
=
false
questionnaireButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
8
,
left
:
10
,
bottom
:
2
,
right
:
10
)
}
else
{
questionnaireButton
.
setTitle
(
"+Προτιμήσεις"
,
for
:
.
normal
)
questionnaireButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
14
)
questionnaireButton
.
setTitleColor
(
UIColor
(
red
:
0.31
,
green
:
0.62
,
blue
:
0.18
,
alpha
:
1.00
),
for
:
.
normal
)
questionnaireButton
.
backgroundColor
=
UIColor
(
red
:
0.90
,
green
:
0.90
,
blue
:
0.90
,
alpha
:
1.00
)
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
questionnaireButton
.
intrinsicContentSize
.
height
)
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
26
)
questionnaireButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
5
,
left
:
10
,
bottom
:
5
,
right
:
10
)
}
questionnaireButton
.
layer
.
cornerRadius
=
7.0
...
...
@@ -293,7 +295,7 @@ import SwiftEventBus
questionnaireButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
14
)
questionnaireButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
// questionnaireButton.sizeToFit()
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
questionnaireButton
.
intrinsicContentSize
.
height
)
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
26
)
questionnaireButton
.
applyGradient
(
colours
:
[
UIColor
(
red
:
0.40
,
green
:
0.77
,
blue
:
0.28
,
alpha
:
1.00
),
UIColor
(
red
:
0.10
,
green
:
0.66
,
blue
:
0.72
,
alpha
:
1.00
)],
gradient
:
GradientOrientation
.
horizontal
,
cornerRadius
:
7.0
)
// Shadow Color
questionnaireButton
.
layer
.
shadowColor
=
UIColor
(
red
:
0.33
,
green
:
0.38
,
blue
:
0.43
,
alpha
:
1.00
)
.
cgColor
...
...
@@ -301,6 +303,7 @@ import SwiftEventBus
questionnaireButton
.
layer
.
shadowOpacity
=
1.0
questionnaireButton
.
layer
.
shadowRadius
=
0.0
questionnaireButton
.
layer
.
masksToBounds
=
false
questionnaireButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
8
,
left
:
10
,
bottom
:
2
,
right
:
10
)
}
else
{
for
layer
in
(
questionnaireButton
.
layer
.
sublayers
??
[])
{
if
(
layer
.
name
==
"linearGradientLayer"
){
...
...
@@ -312,7 +315,8 @@ import SwiftEventBus
questionnaireButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
14
)
questionnaireButton
.
setTitleColor
(
UIColor
(
red
:
0.31
,
green
:
0.62
,
blue
:
0.18
,
alpha
:
1.00
),
for
:
.
normal
)
questionnaireButton
.
backgroundColor
=
UIColor
(
red
:
0.90
,
green
:
0.90
,
blue
:
0.90
,
alpha
:
1.00
)
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
questionnaireButton
.
intrinsicContentSize
.
height
)
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
26
)
questionnaireButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
5
,
left
:
10
,
bottom
:
5
,
right
:
10
)
}
questionnaireButton
.
layer
.
cornerRadius
=
7.0
}
...
...
Please
register
or
login
to post a comment