Commit 5dd11f35 by Orkhan Alikhanov

Removed unnecessary convenience initializers.

parent 87ac65d4
...@@ -157,11 +157,6 @@ open class Bar: View { ...@@ -157,11 +157,6 @@ open class Bar: View {
super.init(frame: frame) super.init(frame: frame)
} }
/// Convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
/** /**
A convenience initializer with parameter settings. A convenience initializer with parameter settings.
- Parameter leftViews: An Array of UIViews that go on the left side. - Parameter leftViews: An Array of UIViews that go on the left side.
......
...@@ -188,11 +188,6 @@ open class Button: UIButton, Pulseable, PulseableLayer { ...@@ -188,11 +188,6 @@ open class Button: UIButton, Pulseable, PulseableLayer {
prepare() prepare()
} }
/// A convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
/** /**
A convenience initializer that acceps an image and tint A convenience initializer that acceps an image and tint
- Parameter image: A UIImage. - Parameter image: A UIImage.
......
...@@ -168,11 +168,6 @@ open class Card: PulseView { ...@@ -168,11 +168,6 @@ open class Card: PulseView {
super.init(frame: frame) super.init(frame: frame)
} }
/// A convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
/** /**
A convenience initiazlier. A convenience initiazlier.
- Parameter toolbar: An optional Toolbar. - Parameter toolbar: An optional Toolbar.
......
...@@ -228,11 +228,6 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable, Pulseabl ...@@ -228,11 +228,6 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable, Pulseabl
prepare() prepare()
} }
/// A convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
open override func layoutSubviews() { open override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
layoutShape() layoutShape()
......
...@@ -186,11 +186,6 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable, PulseableLayer { ...@@ -186,11 +186,6 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable, PulseableLayer {
prepare() prepare()
} }
/// A convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
open override func layoutSubviews() { open override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
layoutShape() layoutShape()
......
...@@ -120,11 +120,6 @@ open class NavigationBar: UINavigationBar { ...@@ -120,11 +120,6 @@ open class NavigationBar: UINavigationBar {
prepare() prepare()
} }
/// A convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
open override func sizeThatFits(_ size: CGSize) -> CGSize { open override func sizeThatFits(_ size: CGSize) -> CGSize {
return intrinsicContentSize return intrinsicContentSize
} }
......
...@@ -53,11 +53,6 @@ open class TableView: UITableView { ...@@ -53,11 +53,6 @@ open class TableView: UITableView {
self.init(frame: frame, style: .plain) self.init(frame: frame, style: .plain)
} }
/// A convenience initializer that initializes the object.
public convenience init() {
self.init(frame: .zero)
}
/** /**
Prepares the view instance when intialized. When subclassing, Prepares the view instance when intialized. When subclassing,
it is recommended to override the prepare method it is recommended to override the prepare method
......
...@@ -403,11 +403,6 @@ open class TextField: UITextField { ...@@ -403,11 +403,6 @@ open class TextField: UITextField {
prepare() prepare()
} }
/// A convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
open override func layoutSubviews() { open override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
layoutShape() layoutShape()
......
...@@ -156,11 +156,6 @@ open class View: UIView { ...@@ -156,11 +156,6 @@ open class View: UIView {
prepare() prepare()
} }
/// Convenience initializer.
public convenience init() {
self.init(frame: .zero)
}
open override func layoutSubviews() { open override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
layoutShape() layoutShape()
......
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