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
25a3decc
Unverified
Commit
25a3decc
authored
Jun 06, 2018
by
Daniel Dahan
Committed by
GitHub
Jun 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1088 from OrkhanAlikhanov/issue-1085
Removed unnecessary convenience initializers.
parents
d603e0fa
5dd11f35
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
45 deletions
+0
-45
Sources/iOS/Bar.swift
+0
-5
Sources/iOS/Button.swift
+0
-5
Sources/iOS/Card.swift
+0
-5
Sources/iOS/CollectionReusableView.swift
+0
-5
Sources/iOS/CollectionViewCell.swift
+0
-5
Sources/iOS/NavigationBar.swift
+0
-5
Sources/iOS/TableView.swift
+0
-5
Sources/iOS/TextField.swift
+0
-5
Sources/iOS/View.swift
+0
-5
No files found.
Sources/iOS/Bar.swift
View file @
25a3decc
...
@@ -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.
...
...
Sources/iOS/Button.swift
View file @
25a3decc
...
@@ -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.
...
...
Sources/iOS/Card.swift
View file @
25a3decc
...
@@ -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.
...
...
Sources/iOS/CollectionReusableView.swift
View file @
25a3decc
...
@@ -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
()
...
...
Sources/iOS/CollectionViewCell.swift
View file @
25a3decc
...
@@ -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
()
...
...
Sources/iOS/NavigationBar.swift
View file @
25a3decc
...
@@ -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
}
}
...
...
Sources/iOS/TableView.swift
View file @
25a3decc
...
@@ -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
...
...
Sources/iOS/TextField.swift
View file @
25a3decc
...
@@ -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
()
...
...
Sources/iOS/View.swift
View file @
25a3decc
...
@@ -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
()
...
...
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