Merge pull request #218 from MP0w/update-documentation

Update Documentation to Swift 2.0 syntax
This commit is contained in:
Robert Payne 2016-03-26 01:38:37 +13:00
commit d369fde3e5
1 changed files with 5 additions and 5 deletions

View File

@ -123,9 +123,9 @@ public extension View {
/** /**
Prepares constraints with a `ConstraintMaker` and returns the made constraints but does not install them. Prepares constraints with a `ConstraintMaker` and returns the made constraints but does not install them.
:param: closure that will be passed the `ConstraintMaker` to make the constraints with - parameter closure that will be passed the `ConstraintMaker` to make the constraints with
:returns: the constraints made - returns: the constraints made
*/ */
public func snp_prepareConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> [Constraint] { public func snp_prepareConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> [Constraint] {
return ConstraintMaker.prepareConstraints(view: self, file: file, line: line, closure: closure) return ConstraintMaker.prepareConstraints(view: self, file: file, line: line, closure: closure)
@ -134,7 +134,7 @@ public extension View {
/** /**
Makes constraints with a `ConstraintMaker` and installs them along side any previous made constraints. Makes constraints with a `ConstraintMaker` and installs them along side any previous made constraints.
:param: closure that will be passed the `ConstraintMaker` to make the constraints with - parameter closure that will be passed the `ConstraintMaker` to make the constraints with
*/ */
public func snp_makeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void { public func snp_makeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
ConstraintMaker.makeConstraints(view: self, file: file, line: line, closure: closure) ConstraintMaker.makeConstraints(view: self, file: file, line: line, closure: closure)
@ -145,7 +145,7 @@ public extension View {
For constraints to match only the constant can be updated. For constraints to match only the constant can be updated.
:param: closure that will be passed the `ConstraintMaker` to update the constraints with - parameter closure that will be passed the `ConstraintMaker` to update the constraints with
*/ */
public func snp_updateConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void { public func snp_updateConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
ConstraintMaker.updateConstraints(view: self, file: file, line: line, closure: closure) ConstraintMaker.updateConstraints(view: self, file: file, line: line, closure: closure)
@ -154,7 +154,7 @@ public extension View {
/** /**
Remakes constraints with a `ConstraintMaker` that will first remove all previously made constraints and make and install new ones. Remakes constraints with a `ConstraintMaker` that will first remove all previously made constraints and make and install new ones.
:param: closure that will be passed the `ConstraintMaker` to remake the constraints with - parameter closure that will be passed the `ConstraintMaker` to remake the constraints with
*/ */
public func snp_remakeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void { public func snp_remakeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
ConstraintMaker.remakeConstraints(view: self, file: file, line: line, closure: closure) ConstraintMaker.remakeConstraints(view: self, file: file, line: line, closure: closure)