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
ef45d307
Commit
ef45d307
authored
May 25, 2016
by
danieldahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated BarViews to have optional leftControls and rightControls when in itializing
parent
f5619913
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
Sources/iOS/BarView.swift
+2
-2
Sources/iOS/ControlView.swift
+1
-1
Sources/iOS/SearchBar.swift
+1
-1
Sources/iOS/Toolbar.swift
+1
-1
No files found.
Sources/iOS/BarView.swift
View file @
ef45d307
...
...
@@ -61,7 +61,7 @@ public class BarView : ControlView {
/// Basic initializer.
public
override
init
()
{
super
.
init
()
super
.
init
(
leftControls
:
nil
,
rightControls
:
nil
)
}
/**
...
...
@@ -69,7 +69,7 @@ public class BarView : ControlView {
- Parameter leftControls: An Array of UIControls that go on the left side.
- Parameter rightControls: An Array of UIControls that go on the right side.
*/
public
override
init
(
leftControls
:
Array
<
UIControl
>
,
rightControls
:
Array
<
UIControl
>
)
{
public
override
init
(
leftControls
:
Array
<
UIControl
>
?,
rightControls
:
Array
<
UIControl
>
?
)
{
super
.
init
(
leftControls
:
leftControls
,
rightControls
:
rightControls
)
}
...
...
Sources/iOS/ControlView.swift
View file @
ef45d307
...
...
@@ -145,7 +145,7 @@ public class ControlView : MaterialView {
- Parameter leftControls: An Array of UIControls that go on the left side.
- Parameter rightControls: An Array of UIControls that go on the right side.
*/
public
init
(
leftControls
:
Array
<
UIControl
>
,
rightControls
:
Array
<
UIControl
>
)
{
public
init
(
leftControls
:
Array
<
UIControl
>
?
=
nil
,
rightControls
:
Array
<
UIControl
>
?
=
nil
)
{
super
.
init
(
frame
:
CGRectZero
)
prepareView
()
prepareProperties
(
leftControls
,
rightControls
:
rightControls
)
...
...
Sources/iOS/SearchBar.swift
View file @
ef45d307
...
...
@@ -121,7 +121,7 @@ public class SearchBar : BarView {
- Parameter leftControls: An Array of UIControls that go on the left side.
- Parameter rightControls: An Array of UIControls that go on the right side.
*/
public
override
init
(
leftControls
:
Array
<
UIControl
>
,
rightControls
:
Array
<
UIControl
>
)
{
public
override
init
(
leftControls
:
Array
<
UIControl
>
?,
rightControls
:
Array
<
UIControl
>
?
)
{
super
.
init
(
leftControls
:
leftControls
,
rightControls
:
rightControls
)
}
...
...
Sources/iOS/Toolbar.swift
View file @
ef45d307
...
...
@@ -84,7 +84,7 @@ public class Toolbar : BarView {
- Parameter leftControls: An Array of UIControls that go on the left side.
- Parameter rightControls: An Array of UIControls that go on the right side.
*/
public
override
init
(
leftControls
:
Array
<
UIControl
>
,
rightControls
:
Array
<
UIControl
>
)
{
public
override
init
(
leftControls
:
Array
<
UIControl
>
?,
rightControls
:
Array
<
UIControl
>
?
)
{
super
.
init
(
leftControls
:
leftControls
,
rightControls
:
rightControls
)
}
...
...
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