Skip to content

Commit ca47b78

Browse files
Mark Pospeselmpospese
authored andcommitted
Mark constrainCenter return value as discardable
1 parent 6007543 commit ca47b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extension UIView {
3737
/// - priority: constraint priority (default `.required`)
3838
/// - isActive: whether to activate the constraints or not (default `true`)
3939
/// - Returns: dictionary of constraints created, keyed by `.centerX, .centerY`
40-
public func constrainCenter(
40+
@discardableResult public func constrainCenter(
4141
_ center: Center = .all,
4242
to view2: Anchorable? = nil,
4343
relatedBy relation: NSLayoutConstraint.Relation = .equal,

0 commit comments

Comments
 (0)