mirror of https://github.com/SnapKit/SnapKit
Rename to Snap
This commit is contained in:
parent
3388aa02f7
commit
a647c10290
|
@ -1,4 +1,4 @@
|
||||||
Preview
|
Preview
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Snappy is currently in preview and regular Changelogs will be provided as it comes out of preview into production quality code.
|
Snap is currently in preview and regular Changelogs will be provided as it comes out of preview into production quality code.
|
|
@ -17,7 +17,7 @@
|
||||||
<key>IDECodeSnippetLanguage</key>
|
<key>IDECodeSnippetLanguage</key>
|
||||||
<string>Xcode.SourceCodeLanguage.Swift</string>
|
<string>Xcode.SourceCodeLanguage.Swift</string>
|
||||||
<key>IDECodeSnippetTitle</key>
|
<key>IDECodeSnippetTitle</key>
|
||||||
<string>Snappy Constraint Make</string>
|
<string>Snap Constraint Make</string>
|
||||||
<key>IDECodeSnippetUserSnippet</key>
|
<key>IDECodeSnippetUserSnippet</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>IDECodeSnippetVersion</key>
|
<key>IDECodeSnippetVersion</key>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<key>IDECodeSnippetLanguage</key>
|
<key>IDECodeSnippetLanguage</key>
|
||||||
<string>Xcode.SourceCodeLanguage.Swift</string>
|
<string>Xcode.SourceCodeLanguage.Swift</string>
|
||||||
<key>IDECodeSnippetTitle</key>
|
<key>IDECodeSnippetTitle</key>
|
||||||
<string>Snappy Constraint Remake</string>
|
<string>Snap Constraint Remake</string>
|
||||||
<key>IDECodeSnippetUserSnippet</key>
|
<key>IDECodeSnippetUserSnippet</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>IDECodeSnippetVersion</key>
|
<key>IDECodeSnippetVersion</key>
|
||||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
//
|
//
|
||||||
// Constraint.swift
|
// Constraint.swift
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
||||||
|
|
34
README.md
34
README.md
|
@ -1,8 +1,8 @@
|
||||||
# Snappy
|
# Snap
|
||||||
|
|
||||||
Snappy is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Snappy has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable. Snappy supports both iOS and OS X.
|
Snap is a light-weight layout framework which wraps AutoLayout with a nicer syntax. Snap has its own layout DSL which provides a chainable way of describing your NSLayoutConstraints which results in layout code that is more concise and readable. Snap supports both iOS and OS X.
|
||||||
|
|
||||||
> Snappy uses some Swift-only features like function overloading, so it cannot be used from Objective-C. Because of this we’ve chosen to swap prefixes from Masonry’s `mas_` to `snp_` so you can use both Masonry and Snappy in the same project.
|
> Snap uses some Swift-only features like function overloading, so it cannot be used from Objective-C. Because of this we’ve chosen to swap prefixes from Masonry’s `mas_` to `snp_` so you can use both Masonry and Snap in the same project.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
|
@ -11,21 +11,21 @@ Snappy is a light-weight layout framework which wraps AutoLayout with a nicer sy
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
_Due to the current lack of [proper infrastructure](http://cocoapods.org) for Swift dependency management, using Snappy in your project requires the following steps:_
|
_Due to the current lack of [proper infrastructure](http://cocoapods.org) for Swift dependency management, using Snap in your project requires the following steps:_
|
||||||
|
|
||||||
1. Add Snappy as a [submodule](http://git-scm.com/docs/git-submodule) by opening the Terminal, `cd`-ing into your top-level project directory, and entering the command `git submodule add https://github.com/Masonry/Snappy.git`
|
1. Add Snap as a [submodule](http://git-scm.com/docs/git-submodule) by opening the Terminal, `cd`-ing into your top-level project directory, and entering the command `git submodule add https://github.com/Masonry/Snap.git`
|
||||||
2. Open the `Snappy` folder, and drag `Snappy.xcodeproj` into the file navigator of your Xcode project<sup>1</sup>.
|
2. Open the `Snap` folder, and drag `Snap.xcodeproj` into the file navigator of your Xcode project<sup>1</sup>.
|
||||||
3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
|
3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
|
||||||
4. In the tab bar at the top of that window, open the "General" panel.
|
4. In the tab bar at the top of that window, open the "General" panel.
|
||||||
5. Click on the `+` button in the "Embedded Binaries" group of the panel and select and add `Snappy.framework`.
|
5. Click on the `+` button in the "Embedded Binaries" group of the panel and select and add `Snap.framework`.
|
||||||
|
|
||||||
<sup>1</sup><small>It's important you add Snappy as a subproject of your Xcode Project and not of a potential Xcode Workspace containing your project</small>
|
<sup>1</sup><small>It's important you add Snap as a subproject of your Xcode Project and not of a potential Xcode Workspace containing your project</small>
|
||||||
|
|
||||||
## Installation (Cocoapods pre-release)
|
## Installation (Cocoapods pre-release)
|
||||||
|
|
||||||
1. Add Snappy as a line in your Podfile `pod 'Snappy', :git => 'https://github.com/Masonry/Snappy.git'`
|
1. Add Snap as a line in your Podfile `pod 'Snap', :git => 'https://github.com/Masonry/Snap.git'`
|
||||||
2. Run `pod install`
|
2. Run `pod install`
|
||||||
3. Add `import Snappy` to your `AppDelegate.swift`
|
3. Add `import Snap` to your `AppDelegate.swift`
|
||||||
|
|
||||||
## What's wrong with NSLayoutConstraints?
|
## What's wrong with NSLayoutConstraints?
|
||||||
|
|
||||||
|
@ -108,9 +108,9 @@ view1.snp_makeConstraints { make in
|
||||||
```
|
```
|
||||||
|
|
||||||
Also note in the first example we had to add the constraints to the superview `superview.addConstraints`.
|
Also note in the first example we had to add the constraints to the superview `superview.addConstraints`.
|
||||||
Snappy however will automagically add constraints to the appropriate view.
|
Snap however will automagically add constraints to the appropriate view.
|
||||||
|
|
||||||
Snappy will also call `view1.setTranslatesAutoresizingMaskIntoConstraints(false)` for you.
|
Snap will also call `view1.setTranslatesAutoresizingMaskIntoConstraints(false)` for you.
|
||||||
|
|
||||||
## Not all things are created equal
|
## Not all things are created equal
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ make.width.lessThanOrEqualTo(400)
|
||||||
```
|
```
|
||||||
|
|
||||||
However Auto Layout does not allow alignment attributes such as left, right, centerY etc to be set to constant values.
|
However Auto Layout does not allow alignment attributes such as left, right, centerY etc to be set to constant values.
|
||||||
So if you pass a primitive for these attributes Snappy will turn these into constraints relative to the view’s superview ie:
|
So if you pass a primitive for these attributes Snap will turn these into constraints relative to the view’s superview ie:
|
||||||
```swift
|
```swift
|
||||||
// creates view.left <= view.superview.left + 10
|
// creates view.left <= view.superview.left + 10
|
||||||
make.left.lessThanOrEqualTo(10)
|
make.left.lessThanOrEqualTo(10)
|
||||||
|
@ -196,7 +196,7 @@ make.top.equalTo(label.snp_top).with.priority(600);
|
||||||
|
|
||||||
## Composition, composition, composition
|
## Composition, composition, composition
|
||||||
|
|
||||||
Snappy also gives you a few convenience methods which create multiple constraints at the same time.
|
Snap also gives you a few convenience methods which create multiple constraints at the same time.
|
||||||
|
|
||||||
#### edges
|
#### edges
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ make.top.equalTo(otherView)
|
||||||
## Hold on for dear life
|
## Hold on for dear life
|
||||||
|
|
||||||
Sometimes you need modify existing constraints in order to animate or remove/replace constraints.
|
Sometimes you need modify existing constraints in order to animate or remove/replace constraints.
|
||||||
In Snappy there are a few different approaches to updating constraints.
|
In Snap there are a few different approaches to updating constraints.
|
||||||
|
|
||||||
#### 1. References
|
#### 1. References
|
||||||
You can hold on to a reference of a particular constraint by assigning the result of a constraint make expression to a local variable or a class property.
|
You can hold on to a reference of a particular constraint by assigning the result of a constraint make expression to a local variable or a class property.
|
||||||
|
@ -265,7 +265,7 @@ self.topConstraint.uninstall()
|
||||||
|
|
||||||
### 2. snp_remakeConstraints
|
### 2. snp_remakeConstraints
|
||||||
|
|
||||||
`snp_remakeConstraints` is similar to `snp_makeConstraints`, but will first remove all existing constraints installed by Snappy.
|
`snp_remakeConstraints` is similar to `snp_makeConstraints`, but will first remove all existing constraints installed by Snap.
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
func changeButtonPosition() {
|
func changeButtonPosition() {
|
||||||
|
@ -284,7 +284,7 @@ func changeButtonPosition() {
|
||||||
|
|
||||||
## Code Snippets
|
## Code Snippets
|
||||||
|
|
||||||
Copy the included code snippets to ``~/Library/Developer/Xcode/UserData/CodeSnippets`` to write your snappy closures at lightning speed!
|
Copy the included code snippets to ``~/Library/Developer/Xcode/UserData/CodeSnippets`` to write your snap closures at lightning speed!
|
||||||
|
|
||||||
`snp_make` -> `<view>.snp_makeConstraints { make in <code> }`
|
`snp_make` -> `<view>.snp_makeConstraints { make in <code> }`
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'Snappy'
|
s.name = 'Snap'
|
||||||
s.version = '0.0.1'
|
s.version = '0.0.1'
|
||||||
s.license = 'MIT'
|
s.license = 'MIT'
|
||||||
s.summary = 'Harness the power of auto layout with a simplified, chainable, and compile time safe syntax.'
|
s.summary = 'Harness the power of auto layout with a simplified, chainable, and compile time safe syntax.'
|
||||||
s.homepage = 'https://github.com/Masonry/Snappy'
|
s.homepage = 'https://github.com/Masonry/Snap'
|
||||||
s.authors = { 'Robert Payne' => 'robertpayne@me.com' }
|
s.authors = { 'Robert Payne' => 'robertpayne@me.com' }
|
||||||
s.social_media_url = 'http://twitter.com/robertjpayne'
|
s.social_media_url = 'http://twitter.com/robertjpayne'
|
||||||
s.source = { :git => 'https://github.com/Masonry/Snappy.git', :tag => '0.0.1' }
|
s.source = { :git => 'https://github.com/Masonry/Snap.git', :tag => '0.0.1' }
|
||||||
|
|
||||||
s.ios.deployment_target = '8.0'
|
s.ios.deployment_target = '8.0'
|
||||||
s.osx.deployment_target = '10.9'
|
s.osx.deployment_target = '10.9'
|
||||||
|
|
||||||
s.source_files = 'Snappy/*.swift'
|
s.source_files = 'Snap/*.swift'
|
||||||
end
|
end
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
EEBCC9F019CC64F80083B827 /* EdgeInsets.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */; };
|
EEBCC9F019CC64F80083B827 /* EdgeInsets.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */; };
|
||||||
EEBCC9F219CC65050083B827 /* View+Snappy.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F119CC65040083B827 /* View+Snappy.swift */; };
|
EEBCC9F219CC65050083B827 /* View+Snap.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F119CC65040083B827 /* View+Snap.swift */; };
|
||||||
EEBCC9F419CC65110083B827 /* ConstraintAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F319CC65110083B827 /* ConstraintAttributes.swift */; };
|
EEBCC9F419CC65110083B827 /* ConstraintAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F319CC65110083B827 /* ConstraintAttributes.swift */; };
|
||||||
EEBCC9F619CC65200083B827 /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F519CC65200083B827 /* ConstraintRelation.swift */; };
|
EEBCC9F619CC65200083B827 /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F519CC65200083B827 /* ConstraintRelation.swift */; };
|
||||||
EEBCC9F819CC65260083B827 /* ConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F719CC65260083B827 /* ConstraintItem.swift */; };
|
EEBCC9F819CC65260083B827 /* ConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F719CC65260083B827 /* ConstraintItem.swift */; };
|
||||||
|
@ -19,13 +19,13 @@
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
EE91728119CB304E007888CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
EE91728119CB304E007888CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
EE91728219CB304E007888CF /* Snappy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Snappy.h; sourceTree = "<group>"; };
|
EE91728219CB304E007888CF /* Snap.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Snap.h; sourceTree = "<group>"; };
|
||||||
EE91728B19CB304E007888CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
EE91728B19CB304E007888CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
EE91728C19CB304E007888CF /* SnappyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnappyTests.swift; sourceTree = "<group>"; };
|
EE91728C19CB304E007888CF /* SnapTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnapTests.swift; sourceTree = "<group>"; };
|
||||||
EEBCC9D819CC627D0083B827 /* Snappy.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Snappy.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
EEBCC9D819CC627D0083B827 /* Snap.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Snap.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
EEBCC9E219CC627E0083B827 /* SnappyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SnappyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
EEBCC9E219CC627E0083B827 /* SnapTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SnapTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EdgeInsets.swift; sourceTree = "<group>"; };
|
EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EdgeInsets.swift; sourceTree = "<group>"; };
|
||||||
EEBCC9F119CC65040083B827 /* View+Snappy.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "View+Snappy.swift"; sourceTree = "<group>"; };
|
EEBCC9F119CC65040083B827 /* View+Snap.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "View+Snap.swift"; sourceTree = "<group>"; };
|
||||||
EEBCC9F319CC65110083B827 /* ConstraintAttributes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintAttributes.swift; sourceTree = "<group>"; };
|
EEBCC9F319CC65110083B827 /* ConstraintAttributes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintAttributes.swift; sourceTree = "<group>"; };
|
||||||
EEBCC9F519CC65200083B827 /* ConstraintRelation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintRelation.swift; sourceTree = "<group>"; };
|
EEBCC9F519CC65200083B827 /* ConstraintRelation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintRelation.swift; sourceTree = "<group>"; };
|
||||||
EEBCC9F719CC65260083B827 /* ConstraintItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintItem.swift; sourceTree = "<group>"; };
|
EEBCC9F719CC65260083B827 /* ConstraintItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintItem.swift; sourceTree = "<group>"; };
|
||||||
|
@ -55,8 +55,8 @@
|
||||||
DDC9FD8C1981B4DD009612C7 = {
|
DDC9FD8C1981B4DD009612C7 = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
EE91727F19CB304E007888CF /* Snappy */,
|
EE91727F19CB304E007888CF /* Snap */,
|
||||||
EE91728919CB304E007888CF /* SnappyTests */,
|
EE91728919CB304E007888CF /* SnapTests */,
|
||||||
DDC9FD961981B4DD009612C7 /* Products */,
|
DDC9FD961981B4DD009612C7 /* Products */,
|
||||||
);
|
);
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -64,17 +64,17 @@
|
||||||
DDC9FD961981B4DD009612C7 /* Products */ = {
|
DDC9FD961981B4DD009612C7 /* Products */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
EEBCC9D819CC627D0083B827 /* Snappy.framework */,
|
EEBCC9D819CC627D0083B827 /* Snap.framework */,
|
||||||
EEBCC9E219CC627E0083B827 /* SnappyTests.xctest */,
|
EEBCC9E219CC627E0083B827 /* SnapTests.xctest */,
|
||||||
);
|
);
|
||||||
name = Products;
|
name = Products;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
EE91727F19CB304E007888CF /* Snappy */ = {
|
EE91727F19CB304E007888CF /* Snap */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
EE91728219CB304E007888CF /* Snappy.h */,
|
EE91728219CB304E007888CF /* Snap.h */,
|
||||||
EEBCC9F119CC65040083B827 /* View+Snappy.swift */,
|
EEBCC9F119CC65040083B827 /* View+Snap.swift */,
|
||||||
EEBCC9FB19CC65430083B827 /* ConstraintMaker.swift */,
|
EEBCC9FB19CC65430083B827 /* ConstraintMaker.swift */,
|
||||||
EEBCC9FF19CC66020083B827 /* Constraint.swift */,
|
EEBCC9FF19CC66020083B827 /* Constraint.swift */,
|
||||||
EEBCC9F719CC65260083B827 /* ConstraintItem.swift */,
|
EEBCC9F719CC65260083B827 /* ConstraintItem.swift */,
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */,
|
EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */,
|
||||||
EE91728019CB304E007888CF /* Supporting Files */,
|
EE91728019CB304E007888CF /* Supporting Files */,
|
||||||
);
|
);
|
||||||
path = Snappy;
|
path = Snap;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
EE91728019CB304E007888CF /* Supporting Files */ = {
|
EE91728019CB304E007888CF /* Supporting Files */ = {
|
||||||
|
@ -95,13 +95,13 @@
|
||||||
name = "Supporting Files";
|
name = "Supporting Files";
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
EE91728919CB304E007888CF /* SnappyTests */ = {
|
EE91728919CB304E007888CF /* SnapTests */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
EE91728C19CB304E007888CF /* SnappyTests.swift */,
|
EE91728C19CB304E007888CF /* SnapTests.swift */,
|
||||||
EE91728A19CB304E007888CF /* Supporting Files */,
|
EE91728A19CB304E007888CF /* Supporting Files */,
|
||||||
);
|
);
|
||||||
path = SnappyTests;
|
path = SnapTests;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
EE91728A19CB304E007888CF /* Supporting Files */ = {
|
EE91728A19CB304E007888CF /* Supporting Files */ = {
|
||||||
|
@ -125,9 +125,9 @@
|
||||||
/* End PBXHeadersBuildPhase section */
|
/* End PBXHeadersBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
EEBCC9D719CC627D0083B827 /* Snappy */ = {
|
EEBCC9D719CC627D0083B827 /* Snap */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snappy" */;
|
buildConfigurationList = EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snap" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
EEBCC9D319CC627D0083B827 /* Sources */,
|
EEBCC9D319CC627D0083B827 /* Sources */,
|
||||||
EEBCC9D419CC627D0083B827 /* Frameworks */,
|
EEBCC9D419CC627D0083B827 /* Frameworks */,
|
||||||
|
@ -138,14 +138,14 @@
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = Snappy;
|
name = Snap;
|
||||||
productName = Snappy;
|
productName = Snap;
|
||||||
productReference = EEBCC9D819CC627D0083B827 /* Snappy.framework */;
|
productReference = EEBCC9D819CC627D0083B827 /* Snap.framework */;
|
||||||
productType = "com.apple.product-type.framework";
|
productType = "com.apple.product-type.framework";
|
||||||
};
|
};
|
||||||
EEBCC9E119CC627D0083B827 /* SnappyTests */ = {
|
EEBCC9E119CC627D0083B827 /* SnapTests */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnappyTests" */;
|
buildConfigurationList = EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapTests" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
EEBCC9DE19CC627D0083B827 /* Sources */,
|
EEBCC9DE19CC627D0083B827 /* Sources */,
|
||||||
EEBCC9DF19CC627D0083B827 /* Frameworks */,
|
EEBCC9DF19CC627D0083B827 /* Frameworks */,
|
||||||
|
@ -155,9 +155,9 @@
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = SnappyTests;
|
name = SnapTests;
|
||||||
productName = SnappyTests;
|
productName = SnapTests;
|
||||||
productReference = EEBCC9E219CC627E0083B827 /* SnappyTests.xctest */;
|
productReference = EEBCC9E219CC627E0083B827 /* SnapTests.xctest */;
|
||||||
productType = "com.apple.product-type.bundle.unit-test";
|
productType = "com.apple.product-type.bundle.unit-test";
|
||||||
};
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
@ -177,7 +177,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildConfigurationList = DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "Snappy" */;
|
buildConfigurationList = DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "Snap" */;
|
||||||
compatibilityVersion = "Xcode 3.2";
|
compatibilityVersion = "Xcode 3.2";
|
||||||
developmentRegion = English;
|
developmentRegion = English;
|
||||||
hasScannedForEncodings = 0;
|
hasScannedForEncodings = 0;
|
||||||
|
@ -190,8 +190,8 @@
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
targets = (
|
targets = (
|
||||||
EEBCC9D719CC627D0083B827 /* Snappy */,
|
EEBCC9D719CC627D0083B827 /* Snap */,
|
||||||
EEBCC9E119CC627D0083B827 /* SnappyTests */,
|
EEBCC9E119CC627D0083B827 /* SnapTests */,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
/* End PBXProject section */
|
/* End PBXProject section */
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
EEBCC9F419CC65110083B827 /* ConstraintAttributes.swift in Sources */,
|
EEBCC9F419CC65110083B827 /* ConstraintAttributes.swift in Sources */,
|
||||||
EEBCC9FE19CC65510083B827 /* LayoutConstraint.swift in Sources */,
|
EEBCC9FE19CC65510083B827 /* LayoutConstraint.swift in Sources */,
|
||||||
EEBCC9FC19CC65430083B827 /* ConstraintMaker.swift in Sources */,
|
EEBCC9FC19CC65430083B827 /* ConstraintMaker.swift in Sources */,
|
||||||
EEBCC9F219CC65050083B827 /* View+Snappy.swift in Sources */,
|
EEBCC9F219CC65050083B827 /* View+Snap.swift in Sources */,
|
||||||
EEBCCA0019CC66020083B827 /* Constraint.swift in Sources */,
|
EEBCCA0019CC66020083B827 /* Constraint.swift in Sources */,
|
||||||
EEBCC9F819CC65260083B827 /* ConstraintItem.swift in Sources */,
|
EEBCC9F819CC65260083B827 /* ConstraintItem.swift in Sources */,
|
||||||
);
|
);
|
||||||
|
@ -330,7 +330,7 @@
|
||||||
"DEBUG=1",
|
"DEBUG=1",
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = Snappy/Info.plist;
|
INFOPLIST_FILE = Snap/Info.plist;
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
|
@ -349,7 +349,7 @@
|
||||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||||
DYLIB_CURRENT_VERSION = 1;
|
DYLIB_CURRENT_VERSION = 1;
|
||||||
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
||||||
INFOPLIST_FILE = Snappy/Info.plist;
|
INFOPLIST_FILE = Snap/Info.plist;
|
||||||
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
|
@ -371,7 +371,7 @@
|
||||||
"DEBUG=1",
|
"DEBUG=1",
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = SnappyTests/Info.plist;
|
INFOPLIST_FILE = SnapTests/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
@ -385,7 +385,7 @@
|
||||||
"$(SDKROOT)/Developer/Library/Frameworks",
|
"$(SDKROOT)/Developer/Library/Frameworks",
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
);
|
);
|
||||||
INFOPLIST_FILE = SnappyTests/Info.plist;
|
INFOPLIST_FILE = SnapTests/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
@ -395,7 +395,7 @@
|
||||||
/* End XCBuildConfiguration section */
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
/* Begin XCConfigurationList section */
|
/* Begin XCConfigurationList section */
|
||||||
DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "Snappy" */ = {
|
DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "Snap" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
DDC9FDAF1981B4DD009612C7 /* Debug */,
|
DDC9FDAF1981B4DD009612C7 /* Debug */,
|
||||||
|
@ -404,7 +404,7 @@
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snappy" */ = {
|
EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snap" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
EEBCC9E919CC627E0083B827 /* Debug */,
|
EEBCC9E919CC627E0083B827 /* Debug */,
|
||||||
|
@ -413,7 +413,7 @@
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnappyTests" */ = {
|
EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapTests" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
buildConfigurations = (
|
buildConfigurations = (
|
||||||
EEBCC9EC19CC627E0083B827 /* Debug */,
|
EEBCC9EC19CC627E0083B827 /* Debug */,
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Scheme
|
<Scheme
|
||||||
LastUpgradeVersion = "0620"
|
LastUpgradeVersion = "0610"
|
||||||
version = "1.3">
|
version = "1.3">
|
||||||
<BuildAction
|
<BuildAction
|
||||||
parallelizeBuildables = "YES"
|
parallelizeBuildables = "YES"
|
||||||
|
@ -15,9 +15,9 @@
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
|
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
|
||||||
BuildableName = "Snappy.framework"
|
BuildableName = "Snap.framework"
|
||||||
BlueprintName = "Snappy"
|
BlueprintName = "Snap"
|
||||||
ReferencedContainer = "container:Snappy.xcodeproj">
|
ReferencedContainer = "container:Snap.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildActionEntry>
|
</BuildActionEntry>
|
||||||
</BuildActionEntries>
|
</BuildActionEntries>
|
||||||
|
@ -43,9 +43,9 @@
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
|
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
|
||||||
BuildableName = "Snappy.framework"
|
BuildableName = "Snap.framework"
|
||||||
BlueprintName = "Snappy"
|
BlueprintName = "Snap"
|
||||||
ReferencedContainer = "container:Snappy.xcodeproj">
|
ReferencedContainer = "container:Snap.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</MacroExpansion>
|
</MacroExpansion>
|
||||||
<AdditionalOptions>
|
<AdditionalOptions>
|
||||||
|
@ -61,9 +61,9 @@
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
|
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
|
||||||
BuildableName = "Snappy.framework"
|
BuildableName = "Snap.framework"
|
||||||
BlueprintName = "Snappy"
|
BlueprintName = "Snap"
|
||||||
ReferencedContainer = "container:Snappy.xcodeproj">
|
ReferencedContainer = "container:Snap.xcodeproj">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</MacroExpansion>
|
</MacroExpansion>
|
||||||
</ProfileAction>
|
</ProfileAction>
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
||||||
|
@ -28,7 +28,7 @@ import AppKit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ConstraintMaker is the maker in snappy that gets all constraints kickstarted
|
* ConstraintMaker is the maker in snap that gets all constraints kickstarted
|
||||||
*/
|
*/
|
||||||
public class ConstraintMaker {
|
public class ConstraintMaker {
|
||||||
public var left: Constraint { return addConstraint(ConstraintAttributes.Left) }
|
public var left: Constraint { return addConstraint(ConstraintAttributes.Left) }
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
||||||
|
@ -28,7 +28,7 @@ import AppKit
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LayoutConstraint is a subclass of NSLayoutConstraint to assist Snappy and also provide better debugging
|
* LayoutConstraint is a subclass of NSLayoutConstraint to assist Snap and also provide better debugging
|
||||||
*/
|
*/
|
||||||
public class LayoutConstraint: NSLayoutConstraint {
|
public class LayoutConstraint: NSLayoutConstraint {
|
||||||
internal var constraint: Constraint?
|
internal var constraint: Constraint?
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
//! Project version number for Snappy.
|
//! Project version number for Snap.
|
||||||
FOUNDATION_EXPORT double SnappyVersionNumber;
|
FOUNDATION_EXPORT double SnapVersionNumber;
|
||||||
|
|
||||||
//! Project version string for Snappy.
|
//! Project version string for Snap.
|
||||||
FOUNDATION_EXPORT const unsigned char SnappyVersionString[];
|
FOUNDATION_EXPORT const unsigned char SnapVersionString[];
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// Snappy
|
// Snap
|
||||||
//
|
//
|
||||||
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
|
||||||
//
|
//
|
|
@ -1,6 +1,6 @@
|
||||||
//
|
//
|
||||||
// SnappyTests.swift
|
// SnapTests.swift
|
||||||
// SnappyTests
|
// SnapTests
|
||||||
//
|
//
|
||||||
// Created by Robert Payne on 20/09/14.
|
// Created by Robert Payne on 20/09/14.
|
||||||
// Copyright (c) 2014 Jonas Budelmann. All rights reserved.
|
// Copyright (c) 2014 Jonas Budelmann. All rights reserved.
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
import UIKit
|
import UIKit
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
class SnappyTests: XCTestCase {
|
class SnapTests: XCTestCase {
|
||||||
|
|
||||||
override func setUp() {
|
override func setUp() {
|
||||||
super.setUp()
|
super.setUp()
|
Loading…
Reference in New Issue