Skip to content

Commit

Permalink
Replace NSLayoutAnchor with AnchorType
Browse files Browse the repository at this point in the history
  • Loading branch information
tinder-garricnahapetian committed Jan 18, 2024
1 parent b1862af commit 7622f58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Layout/Layout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ public final class Layout { // swiftlint:disable:this type_body_length
@discardableResult
public func center(
_ view: UIView,
between leading: NSLayoutAnchor<NSLayoutXAxisAnchor>,
and trailing: NSLayoutAnchor<NSLayoutXAxisAnchor>,
between leading: NSLayoutXAxisAnchor,
and trailing: NSLayoutXAxisAnchor,
priority: UILayoutPriority = .required
) -> Layout {
guard let layoutView: UIView = self.view
Expand All @@ -353,8 +353,8 @@ public final class Layout { // swiftlint:disable:this type_body_length
@discardableResult
public func center(
_ view: UIView,
between top: NSLayoutAnchor<NSLayoutYAxisAnchor>,
and bottom: NSLayoutAnchor<NSLayoutYAxisAnchor>,
between top: NSLayoutYAxisAnchor,
and bottom: NSLayoutYAxisAnchor,
priority: UILayoutPriority = .required
) -> Layout {
guard let layoutView: UIView = self.view
Expand Down

0 comments on commit 7622f58

Please sign in to comment.