diff --git a/Sources/Layout/Length.swift b/Sources/Layout/Length.swift index 257e23e..3e8e77d 100644 --- a/Sources/Layout/Length.swift +++ b/Sources/Layout/Length.swift @@ -57,7 +57,7 @@ public enum Length: Hashable, ExpressibleByFloatLiteral, ExpressibleByIntegerLit extension Length { - func constrain(_ lhs: NSLayoutAnchor, to rhs: NSLayoutAnchor) -> NSLayoutConstraint { + public func constrain(_ lhs: NSLayoutAnchor, to rhs: NSLayoutAnchor) -> NSLayoutConstraint { switch self { case .exactly(let value): return lhs.constraint(equalTo: rhs, constant: CGFloat(value)) @@ -68,7 +68,7 @@ extension Length { } } - func constrainToConstant(_ lhs: NSLayoutDimension) -> NSLayoutConstraint { + public func constrainToConstant(_ lhs: NSLayoutDimension) -> NSLayoutConstraint { switch self { case .exactly(let value): return lhs.constraint(equalToConstant: CGFloat(value))