Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
8c2aa5f7
Commit
8c2aa5f7
authored
Oct 16, 2018
by
Orkhan Alikhanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Button coloring issues
parent
9b44d898
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Sources/iOS/Button.swift
+8
-8
No files found.
Sources/iOS/Button.swift
View file @
8c2aa5f7
...
...
@@ -191,9 +191,9 @@ open class Button: UIButton, Pulseable, PulseableLayer, Themeable {
/**
A convenience initializer that acceps an image and tint
- Parameter image: A UIImage.
- Parameter tintColor: A UI
- Parameter tintColor: A UI
Color.
*/
public
init
(
image
:
UIImage
?,
tintColor
:
UIColor
=
Color
.
blue
.
base
)
{
public
init
(
image
:
UIImage
?,
tintColor
:
UIColor
?
=
nil
)
{
super
.
init
(
frame
:
.
zero
)
prepare
()
prepare
(
with
:
image
,
tintColor
:
tintColor
)
...
...
@@ -202,9 +202,9 @@ open class Button: UIButton, Pulseable, PulseableLayer, Themeable {
/**
A convenience initializer that acceps a title and title
- Parameter title: A String.
- Parameter titleColor: A UI
- Parameter titleColor: A UI
Color.
*/
public
init
(
title
:
String
?,
titleColor
:
UIColor
=
Color
.
blue
.
base
)
{
public
init
(
title
:
String
?,
titleColor
:
UIColor
?
=
nil
)
{
super
.
init
(
frame
:
.
zero
)
prepare
()
prepare
(
with
:
title
,
titleColor
:
titleColor
)
...
...
@@ -309,9 +309,9 @@ extension Button {
- Parameter image: A UIImage.
- Parameter tintColor: A UI
*/
fileprivate
func
prepare
(
with
image
:
UIImage
?,
tintColor
:
UIColor
)
{
fileprivate
func
prepare
(
with
image
:
UIImage
?,
tintColor
:
UIColor
?
)
{
self
.
image
=
image
self
.
tintColor
=
tintColor
self
.
tintColor
=
tintColor
??
self
.
tintColor
}
/**
...
...
@@ -319,9 +319,9 @@ extension Button {
- Parameter title: A String.
- Parameter titleColor: A UI
*/
fileprivate
func
prepare
(
with
title
:
String
?,
titleColor
:
UIColor
)
{
fileprivate
func
prepare
(
with
title
:
String
?,
titleColor
:
UIColor
?
)
{
self
.
title
=
title
self
.
titleColor
=
titleColor
self
.
titleColor
=
titleColor
??
self
.
titleColor
}
}
...
...
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