Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
2a5c5801
Commit
2a5c5801
authored
Nov 29, 2018
by
Jose Blaya
Browse files
Make PIAButton methods available outside the library
parent
194d2d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/UI/iOS/PIAButton.swift
View file @
2a5c5801
...
...
@@ -55,12 +55,12 @@ public class PIAButton: UIButton {
clipsToBounds
=
true
}
func
setRounded
()
{
public
func
setRounded
()
{
self
.
layer
.
cornerRadius
=
6.0
clipsToBounds
=
true
}
func
setBorder
(
withSize
size
:
CGFloat
,
public
func
setBorder
(
withSize
size
:
CGFloat
,
andColor
color
:
UIColor
)
{
self
.
layer
.
borderWidth
=
size
self
.
borderColor
=
color
...
...
@@ -68,7 +68,7 @@ public class PIAButton: UIButton {
clipsToBounds
=
true
}
func
setBorder
(
withSize
size
:
CGFloat
,
public
func
setBorder
(
withSize
size
:
CGFloat
,
andStyle
style
:
TextStyle
)
{
self
.
layer
.
borderWidth
=
size
self
.
style
=
style
...
...
@@ -79,7 +79,7 @@ public class PIAButton: UIButton {
clipsToBounds
=
true
}
func
resetButton
()
{
public
func
resetButton
()
{
self
.
isButtonImage
=
false
self
.
edgesHaveBeenSet
=
false
self
.
renderingModeHasBeenSet
=
false
...
...
@@ -89,7 +89,7 @@ public class PIAButton: UIButton {
clipsToBounds
=
true
}
func
setButtonImage
()
{
public
func
setButtonImage
()
{
self
.
isButtonImage
=
true
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment