Skip to content

Commit

Permalink
removed alignLeft/alignRight as left/rightAnchor should not be used a…
Browse files Browse the repository at this point in the history
…nymore
  • Loading branch information
mpoimer committed Jun 15, 2021
1 parent 649f64b commit fde1465
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Sources/Toolbox/Extensions/UIKit/UIView+AutoLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ public extension UIView {
return trailingAnchor.constraint(equalTo: anchorView(view).trailingAnchor, constant: constant)
}

func alignLeft(_ view: UIView? = nil, constant: CGFloat = 0) -> NSLayoutConstraint {
return leftAnchor.constraint(equalTo: anchorView(view).leftAnchor, constant: constant)
}

func alignRight(_ view: UIView? = nil, constant: CGFloat = 0) -> NSLayoutConstraint {
return rightAnchor.constraint(equalTo: anchorView(view).rightAnchor, constant: constant)
}

func alignTop(_ view: UIView? = nil, constant: CGFloat = 0) -> NSLayoutConstraint {
return topAnchor.constraint(equalTo: anchorView(view).topAnchor, constant: constant)
}
Expand Down

0 comments on commit fde1465

Please sign in to comment.