Skip to content

Commit

Permalink
Applied the variadic parameter treatment to equalSizes(_:) equalWidth…
Browse files Browse the repository at this point in the history
…s(_:) and equalHeights(_:)
  • Loading branch information
mickmaccallum committed Mar 11, 2016
1 parent bbcd30d commit 089d63f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Stevia/Stevia/Stevia/Source/Stevia+Size.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,29 @@ public extension UIView {

}

public func equalSizes(views:UIView...) -> [UIView] {
return equalSizes(views)
}

public func equalSizes(views:[UIView]) -> [UIView] {
equalHeights(views)
equalWidths(views)
return views
}

public func equalWidths(views: UIView...) -> [UIView] {
return equalWidths(views)
}

public func equalWidths(views:[UIView]) -> [UIView] {
equal(.Width, views: views)
return views
}

public func equalHeights(views: UIView...) -> [UIView] {
return equalHeights(views)
}

public func equalHeights(views:[UIView]) -> [UIView] {
equal(.Height, views: views)
return views
Expand Down

0 comments on commit 089d63f

Please sign in to comment.