Skip to content

Commit

Permalink
add relation in width and height constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisho committed Aug 28, 2018
1 parent 999e9a7 commit d5fe7a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions VanillaConstraints/1.0.0/VanillaConstraints.podspec

This file was deleted.

4 changes: 2 additions & 2 deletions VanillaConstraints/Source/VanillaConstraints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ extension Constrainable {
priority: UILayoutPriority = .required
) -> Self {
target.widthAnchor
.constraint(toConstant: constant)
.constraint(toConstant: constant, relation: relation)
.priority(priority)
.activate()

Expand All @@ -212,7 +212,7 @@ extension Constrainable {
priority: UILayoutPriority = .required
) -> Self {
target.heightAnchor
.constraint(toConstant: constant)
.constraint(toConstant: constant, relation: relation)
.priority(priority)
.activate()

Expand Down

0 comments on commit d5fe7a3

Please sign in to comment.