-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstraintFormatter.podspec
31 lines (27 loc) · 1.22 KB
/
ConstraintFormatter.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Pod::Spec.new do |s|
s.name = "ConstraintFormatter"
s.version = "1.1.0"
s.summary = "A library to unify visual constraints and constraints based on attributes for Auto Layout"
s.description = <<-DESC
It's really verbose to write NSLayoutConstraints based on attributes and with this library you can easily write and mix them with visual constraints. Something like this:
```objc
id views = @{@"view1": view1, @"view2": view2};
id metrics = @{@"margin": @(10)};
id formats = @[@"view1.bottom == view2.top + margin",
@"H:|-margin-[view1]-margin-|",
@"H:|[view2]|"];
[view addConstraintsWithFormats:formats
views:views
metrics:metrics];
```
DESC
s.homepage = "https://github.com/greis/ConstraintFormatter"
s.license = 'MIT'
s.author = { "Gabriel Reis" => "[email protected]" }
s.platform = :ios, '6.0'
s.source = { :git => "https://github.com/greis/ConstraintFormatter.git", :tag => s.version.to_s }
s.source_files = 'Classes', 'Classes/**/*.{h,m}'
s.exclude_files = 'Classes/Exclude'
s.requires_arc = true
s.dependency 'RegexKitLite', '~> 4.0'
end