Skip to content

Commit

Permalink
Add discardableResult specifier to constraint activate method
Browse files Browse the repository at this point in the history
  • Loading branch information
iserbius committed Sep 2, 2019
1 parent 3d86d69 commit f37b23e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AutoLayoutSugar/NSLayoutConstraint+Activate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
import UIKit

public extension NSLayoutConstraint {

@discardableResult
func activate() -> Self {
isActive = true
return self
}

}

0 comments on commit f37b23e

Please sign in to comment.