-
Notifications
You must be signed in to change notification settings - Fork 199
/
UIView+AutoLayout.podspec
70 lines (53 loc) · 3.38 KB
/
UIView+AutoLayout.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Pod::Spec.new do |s|
s.deprecated_in_favor_of = 'PureLayout'
s.name = "UIView+AutoLayout"
s.version = "2.0.1"
s.summary = "The ultimate API for iOS Auto Layout. Deprecated in favor of PureLayout: https://github.com/smileyborg/PureLayout"
s.description = <<-DESC
Introducing [PureLayout](https://github.com/smileyborg/PureLayout)
========================
### UIView+AutoLayout has been deprecated in favor of [PureLayout](https://github.com/smileyborg/PureLayout), which includes OS X support!
UIView+AutoLayout
=================
The ultimate API for iOS Auto Layout -- impressively simple, immensely powerful. Comprised of categories on `UIView`, `NSArray`, and `NSLayoutConstraint`.
UIView+AutoLayout provides a developer-friendly interface for the vast majority of Auto Layout use cases. It is designed for clarity and simplicity, taking inspiration from the Auto Layout UI options available in Interface Builder but delivering far more flexibility and capability. The API is also highly efficient, as it adds only a thin layer of third party code and is engineered for maximum performance (for example, by automatically adding constraints to the nearest ancestor view).
API Cheat Sheet
---------------
This is just a handy overview of the core API methods. Check out the [header file](https://github.com/smileyborg/UIView-AutoLayout/blob/master/Source/UIView%2BAutoLayout.h) for the full API and documentation. A couple notes:
* *All of the API methods begin with `auto...` for easy autocompletion!*
* *All methods that generate constraints also automatically add the constraint(s) to the correct view, then return the newly created constraint(s) for you to optionally store for later adjustment or removal.*
* *Many methods below also have a variant which includes a `relation:` parameter to make the constraint an inequality.*
**`UIView`**
+ autoRemoveConstraint(s):
- autoRemoveConstraintsAffectingView(AndSubviews)
+ autoSetPriority:forConstraints:
- autoSetContent(CompressionResistance|Hugging)PriorityForAxis:
- autoCenterInSuperview:
- autoAlignAxisToSuperviewAxis:
- autoPinEdgeToSuperviewEdge:withInset:
- autoPinEdgesToSuperviewEdges:withInsets:(excludingEdge:)
- autoPinEdge:toEdge:ofView:(withOffset:)
- autoAlignAxis:toSameAxisOfView:(withOffset:)
- autoMatchDimension:toDimension:ofView:(withOffset:|withMultiplier:)
- autoSetDimension(s)ToSize:
- autoConstrainAttribute:toAttribute:ofView:(withOffset:|withMultiplier:)
- autoPinTo(Top|Bottom)LayoutGuideOfViewController:withInset:
**`NSArray`**
- autoAlignViewsToEdge:
- autoAlignViewsToAxis:
- autoMatchViewsDimension:
- autoSetViewsDimension:toSize:
- autoDistributeViewsAlongAxis:withFixedSpacing:(insetSpacing:)alignment:
- autoDistributeViewsAlongAxis:withFixedSize:(insetSpacing:)alignment:
**`NSLayoutConstraint`**
- autoInstall
- autoRemove
DESC
s.homepage = "https://github.com/smileyborg/UIView-AutoLayout"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Tyler Fox" => "[email protected]" }
s.platform = :ios, '6.0'
s.source = { :git => "https://github.com/smileyborg/UIView-AutoLayout.git", :tag => "v2.0.1" }
s.source_files = 'Source'
s.requires_arc = true
end