Commit ef45d307 by danieldahan

updated BarViews to have optional leftControls and rightControls when in itializing

parent f5619913
......@@ -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)
}
......
......@@ -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)
......
......@@ -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)
}
......
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment