diff --git a/VanillaConstraints/1.0.0/VanillaConstraints.podspec b/VanillaConstraints/1.0.0/VanillaConstraints.podspec deleted file mode 100644 index 00fe910..0000000 --- a/VanillaConstraints/1.0.0/VanillaConstraints.podspec +++ /dev/null @@ -1,14 +0,0 @@ -Pod::Spec.new do |spec| - spec.name = 'VanillaConstraints' - spec.version = '1.0.0' - spec.license = { :type => 'MIT' } - spec.homepage = 'https://github.com/jdisho/VanillaConstraints' - spec.authors = { 'Joan Disho' => 'dishojoan@gmail.com' } - spec.summary = 'Simplified and chainable AutoLayout NSLayoutConstraints for iOS.' - spec.source = { :git => 'https://github.com/jdisho/VanillaConstraints.git', :tag => spec.version } - spec.swift_version = '4.0' - spec.ios.deployment_target = '9.0' - spec.source_files = 'VanillaConstraints/Source/*.swift' - spec.framework = 'Foundation' - spec.framework = 'UIKit' -end \ No newline at end of file diff --git a/VanillaConstraints/Source/VanillaConstraints.swift b/VanillaConstraints/Source/VanillaConstraints.swift index b96f45f..b39b28b 100644 --- a/VanillaConstraints/Source/VanillaConstraints.swift +++ b/VanillaConstraints/Source/VanillaConstraints.swift @@ -198,7 +198,7 @@ extension Constrainable { priority: UILayoutPriority = .required ) -> Self { target.widthAnchor - .constraint(toConstant: constant) + .constraint(toConstant: constant, relation: relation) .priority(priority) .activate() @@ -212,7 +212,7 @@ extension Constrainable { priority: UILayoutPriority = .required ) -> Self { target.heightAnchor - .constraint(toConstant: constant) + .constraint(toConstant: constant, relation: relation) .priority(priority) .activate()