Rename to Snap

This commit is contained in:
Robert Payne 2015-01-09 09:43:43 +13:00
parent 3388aa02f7
commit a647c10290
21 changed files with 91 additions and 91 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
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.

View File

@ -17,7 +17,7 @@
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetTitle</key>
<string>Snappy Constraint Make</string>
<string>Snap Constraint Make</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>

View File

@ -17,7 +17,7 @@
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetTitle</key>
<string>Snappy Constraint Remake</string>
<string>Snap Constraint Remake</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>

View File

@ -1,6 +1,6 @@
//
// Constraint.swift
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -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 weve chosen to swap prefixes from Masonrys `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 weve chosen to swap prefixes from Masonrys `mas_` to `snp_` so you can use both Masonry and Snap in the same project.
## Requirements
@ -11,21 +11,21 @@ Snappy is a light-weight layout framework which wraps AutoLayout with a nicer sy
## 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`
2. Open the `Snappy` folder, and drag `Snappy.xcodeproj` into the file navigator of your Xcode project<sup>1</sup>.
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 `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.
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)
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`
3. Add `import Snappy` to your `AppDelegate.swift`
3. Add `import Snap` to your `AppDelegate.swift`
## 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`.
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
@ -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.
So if you pass a primitive for these attributes Snappy will turn these into constraints relative to the view&rsquo;s superview ie:
So if you pass a primitive for these attributes Snap will turn these into constraints relative to the view&rsquo;s superview ie:
```swift
// creates view.left <= view.superview.left + 10
make.left.lessThanOrEqualTo(10)
@ -196,7 +196,7 @@ make.top.equalTo(label.snp_top).with.priority(600);
## 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
@ -240,7 +240,7 @@ make.top.equalTo(otherView)
## Hold on for dear life
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
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
`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
func changeButtonPosition() {
@ -284,7 +284,7 @@ func changeButtonPosition() {
## 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> }`

View File

@ -1,15 +1,15 @@
Pod::Spec.new do |s|
s.name = 'Snappy'
s.name = 'Snap'
s.version = '0.0.1'
s.license = 'MIT'
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.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.osx.deployment_target = '10.9'
s.source_files = 'Snappy/*.swift'
s.source_files = 'Snap/*.swift'
end

View File

@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
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 */; };
EEBCC9F619CC65200083B827 /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F519CC65200083B827 /* ConstraintRelation.swift */; };
EEBCC9F819CC65260083B827 /* ConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEBCC9F719CC65260083B827 /* ConstraintItem.swift */; };
@ -19,13 +19,13 @@
/* Begin PBXFileReference section */
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>"; };
EE91728C19CB304E007888CF /* SnappyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnappyTests.swift; sourceTree = "<group>"; };
EEBCC9D819CC627D0083B827 /* Snappy.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Snappy.framework; sourceTree = BUILT_PRODUCTS_DIR; };
EEBCC9E219CC627E0083B827 /* SnappyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SnappyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
EE91728C19CB304E007888CF /* SnapTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnapTests.swift; sourceTree = "<group>"; };
EEBCC9D819CC627D0083B827 /* Snap.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Snap.framework; 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>"; };
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>"; };
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>"; };
@ -55,8 +55,8 @@
DDC9FD8C1981B4DD009612C7 = {
isa = PBXGroup;
children = (
EE91727F19CB304E007888CF /* Snappy */,
EE91728919CB304E007888CF /* SnappyTests */,
EE91727F19CB304E007888CF /* Snap */,
EE91728919CB304E007888CF /* SnapTests */,
DDC9FD961981B4DD009612C7 /* Products */,
);
sourceTree = "<group>";
@ -64,17 +64,17 @@
DDC9FD961981B4DD009612C7 /* Products */ = {
isa = PBXGroup;
children = (
EEBCC9D819CC627D0083B827 /* Snappy.framework */,
EEBCC9E219CC627E0083B827 /* SnappyTests.xctest */,
EEBCC9D819CC627D0083B827 /* Snap.framework */,
EEBCC9E219CC627E0083B827 /* SnapTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
EE91727F19CB304E007888CF /* Snappy */ = {
EE91727F19CB304E007888CF /* Snap */ = {
isa = PBXGroup;
children = (
EE91728219CB304E007888CF /* Snappy.h */,
EEBCC9F119CC65040083B827 /* View+Snappy.swift */,
EE91728219CB304E007888CF /* Snap.h */,
EEBCC9F119CC65040083B827 /* View+Snap.swift */,
EEBCC9FB19CC65430083B827 /* ConstraintMaker.swift */,
EEBCC9FF19CC66020083B827 /* Constraint.swift */,
EEBCC9F719CC65260083B827 /* ConstraintItem.swift */,
@ -84,7 +84,7 @@
EEBCC9EF19CC64F70083B827 /* EdgeInsets.swift */,
EE91728019CB304E007888CF /* Supporting Files */,
);
path = Snappy;
path = Snap;
sourceTree = "<group>";
};
EE91728019CB304E007888CF /* Supporting Files */ = {
@ -95,13 +95,13 @@
name = "Supporting Files";
sourceTree = "<group>";
};
EE91728919CB304E007888CF /* SnappyTests */ = {
EE91728919CB304E007888CF /* SnapTests */ = {
isa = PBXGroup;
children = (
EE91728C19CB304E007888CF /* SnappyTests.swift */,
EE91728C19CB304E007888CF /* SnapTests.swift */,
EE91728A19CB304E007888CF /* Supporting Files */,
);
path = SnappyTests;
path = SnapTests;
sourceTree = "<group>";
};
EE91728A19CB304E007888CF /* Supporting Files */ = {
@ -125,9 +125,9 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
EEBCC9D719CC627D0083B827 /* Snappy */ = {
EEBCC9D719CC627D0083B827 /* Snap */ = {
isa = PBXNativeTarget;
buildConfigurationList = EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snappy" */;
buildConfigurationList = EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snap" */;
buildPhases = (
EEBCC9D319CC627D0083B827 /* Sources */,
EEBCC9D419CC627D0083B827 /* Frameworks */,
@ -138,14 +138,14 @@
);
dependencies = (
);
name = Snappy;
productName = Snappy;
productReference = EEBCC9D819CC627D0083B827 /* Snappy.framework */;
name = Snap;
productName = Snap;
productReference = EEBCC9D819CC627D0083B827 /* Snap.framework */;
productType = "com.apple.product-type.framework";
};
EEBCC9E119CC627D0083B827 /* SnappyTests */ = {
EEBCC9E119CC627D0083B827 /* SnapTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnappyTests" */;
buildConfigurationList = EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapTests" */;
buildPhases = (
EEBCC9DE19CC627D0083B827 /* Sources */,
EEBCC9DF19CC627D0083B827 /* Frameworks */,
@ -155,9 +155,9 @@
);
dependencies = (
);
name = SnappyTests;
productName = SnappyTests;
productReference = EEBCC9E219CC627E0083B827 /* SnappyTests.xctest */;
name = SnapTests;
productName = SnapTests;
productReference = EEBCC9E219CC627E0083B827 /* SnapTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* 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";
developmentRegion = English;
hasScannedForEncodings = 0;
@ -190,8 +190,8 @@
projectDirPath = "";
projectRoot = "";
targets = (
EEBCC9D719CC627D0083B827 /* Snappy */,
EEBCC9E119CC627D0083B827 /* SnappyTests */,
EEBCC9D719CC627D0083B827 /* Snap */,
EEBCC9E119CC627D0083B827 /* SnapTests */,
);
};
/* End PBXProject section */
@ -223,7 +223,7 @@
EEBCC9F419CC65110083B827 /* ConstraintAttributes.swift in Sources */,
EEBCC9FE19CC65510083B827 /* LayoutConstraint.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 */,
EEBCC9F819CC65260083B827 /* ConstraintItem.swift in Sources */,
);
@ -330,7 +330,7 @@
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = Snappy/Info.plist;
INFOPLIST_FILE = Snap/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@ -349,7 +349,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Snappy/Info.plist;
INFOPLIST_FILE = Snap/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@ -371,7 +371,7 @@
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = SnappyTests/Info.plist;
INFOPLIST_FILE = SnapTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
@ -385,7 +385,7 @@
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
INFOPLIST_FILE = SnappyTests/Info.plist;
INFOPLIST_FILE = SnapTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
@ -395,7 +395,7 @@
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "Snappy" */ = {
DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "Snap" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DDC9FDAF1981B4DD009612C7 /* Debug */,
@ -404,7 +404,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snappy" */ = {
EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "Snap" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EEBCC9E919CC627E0083B827 /* Debug */,
@ -413,7 +413,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnappyTests" */ = {
EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EEBCC9EC19CC627E0083B827 /* Debug */,

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
BuildableName = "Snappy.framework"
BlueprintName = "Snappy"
ReferencedContainer = "container:Snappy.xcodeproj">
BuildableName = "Snap.framework"
BlueprintName = "Snap"
ReferencedContainer = "container:Snap.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
@ -43,9 +43,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
BuildableName = "Snappy.framework"
BlueprintName = "Snappy"
ReferencedContainer = "container:Snappy.xcodeproj">
BuildableName = "Snap.framework"
BlueprintName = "Snap"
ReferencedContainer = "container:Snap.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
@ -61,9 +61,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EEBCC9D719CC627D0083B827"
BuildableName = "Snappy.framework"
BlueprintName = "Snappy"
ReferencedContainer = "container:Snappy.xcodeproj">
BuildableName = "Snap.framework"
BlueprintName = "Snap"
ReferencedContainer = "container:Snap.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//
@ -28,7 +28,7 @@ import AppKit
#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 var left: Constraint { return addConstraint(ConstraintAttributes.Left) }

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//
@ -28,7 +28,7 @@ import AppKit
#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 {
internal var constraint: Constraint?

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//
@ -23,8 +23,8 @@
#import <UIKit/UIKit.h>
//! Project version number for Snappy.
FOUNDATION_EXPORT double SnappyVersionNumber;
//! Project version number for Snap.
FOUNDATION_EXPORT double SnapVersionNumber;
//! Project version string for Snappy.
FOUNDATION_EXPORT const unsigned char SnappyVersionString[];
//! Project version string for Snap.
FOUNDATION_EXPORT const unsigned char SnapVersionString[];

View File

@ -1,5 +1,5 @@
//
// Snappy
// Snap
//
// Copyright (c) 2011-2014 Masonry Team - https://github.com/Masonry
//

View File

@ -1,6 +1,6 @@
//
// SnappyTests.swift
// SnappyTests
// SnapTests.swift
// SnapTests
//
// Created by Robert Payne on 20/09/14.
// Copyright (c) 2014 Jonas Budelmann. All rights reserved.
@ -9,7 +9,7 @@
import UIKit
import XCTest
class SnappyTests: XCTestCase {
class SnapTests: XCTestCase {
override func setUp() {
super.setUp()