From 331d39b3953d538fde7ea212806a0e9357e54565 Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 19:21:59 -0400 Subject: [PATCH 1/7] Part1 --- .../contents.xcworkspacedata | 7 ---- MCSwiftLayout/Helpers/Coordinates.swift | 2 +- MCSwiftLayout/PinLayout.swift | 2 +- MCSwiftLayout/Types.swift | 2 +- MCSwiftLayoutTests/AdjustSizeSpec.swift | 2 +- MCSwiftLayoutTests/MCSwiftLayoutTests.swift | 2 +- MCSwiftLayoutTests/MarginsAndInsetsSpec.swift | 2 +- .../PinEdgeCoordinateSpec.swift | 2 +- .../PinPointCoordinatesSpec.swift | 2 +- MCSwiftLayoutTests/RelativePositionSpec.swift | 2 +- .../project.pbxproj | 42 +++++++++---------- .../xcschemes/MCSwiftLayout.xcscheme | 30 ++++++------- Supporting Files/MCSwiftLayout.h | 12 +++--- 13 files changed, 51 insertions(+), 58 deletions(-) delete mode 100644 MCSwiftLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename {MCSwiftLayout.xcodeproj => PinLayout.xcodeproj}/project.pbxproj (93%) rename {MCSwiftLayout.xcodeproj => PinLayout.xcodeproj}/xcshareddata/xcschemes/MCSwiftLayout.xcscheme (76%) diff --git a/MCSwiftLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MCSwiftLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index d3aa2124..00000000 --- a/MCSwiftLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/MCSwiftLayout/Helpers/Coordinates.swift b/MCSwiftLayout/Helpers/Coordinates.swift index 6742f66c..8dcdf0d9 100644 --- a/MCSwiftLayout/Helpers/Coordinates.swift +++ b/MCSwiftLayout/Helpers/Coordinates.swift @@ -6,7 +6,7 @@ // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. // -import Foundation +import UIKit internal class Coordinates { // static func top(_ view: UIView) -> CGFloat { diff --git a/MCSwiftLayout/PinLayout.swift b/MCSwiftLayout/PinLayout.swift index 3861a066..3eaf217d 100644 --- a/MCSwiftLayout/PinLayout.swift +++ b/MCSwiftLayout/PinLayout.swift @@ -6,7 +6,7 @@ // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. // -import Foundation +import UIKit public extension UIView { public var pin: PinLayout { diff --git a/MCSwiftLayout/Types.swift b/MCSwiftLayout/Types.swift index c87e51be..c8db215c 100644 --- a/MCSwiftLayout/Types.swift +++ b/MCSwiftLayout/Types.swift @@ -6,7 +6,7 @@ // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. // -import Foundation +import UIKit typealias Context = () -> String typealias Size = (width: CGFloat?, height: CGFloat?) diff --git a/MCSwiftLayoutTests/AdjustSizeSpec.swift b/MCSwiftLayoutTests/AdjustSizeSpec.swift index ba092f88..4d1243af 100644 --- a/MCSwiftLayoutTests/AdjustSizeSpec.swift +++ b/MCSwiftLayoutTests/AdjustSizeSpec.swift @@ -7,7 +7,7 @@ // import Quick import Nimble -import MCSwiftLayout +import PinLayout class AdjustSizeSpec: QuickSpec { override func spec() { diff --git a/MCSwiftLayoutTests/MCSwiftLayoutTests.swift b/MCSwiftLayoutTests/MCSwiftLayoutTests.swift index e1d76173..8e93c23c 100644 --- a/MCSwiftLayoutTests/MCSwiftLayoutTests.swift +++ b/MCSwiftLayoutTests/MCSwiftLayoutTests.swift @@ -7,7 +7,7 @@ // import XCTest -@testable import MCSwiftLayout +@testable import PinLayout class MCSwiftLayoutTests: XCTestCase { var viewController: UIViewController! diff --git a/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift b/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift index 842729fd..af13b156 100644 --- a/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift +++ b/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift @@ -7,7 +7,7 @@ // import Quick import Nimble -import MCSwiftLayout +import PinLayout class MarginsAndInsetsSpec: QuickSpec { override func spec() { diff --git a/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift b/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift index 6d7f02ac..93077116 100644 --- a/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift +++ b/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift @@ -7,7 +7,7 @@ // import Quick import Nimble -import MCSwiftLayout +import PinLayout class PinEdgeCoordinateSpec: QuickSpec { override func spec() { diff --git a/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift b/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift index aa3b1a04..131cf136 100644 --- a/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift +++ b/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift @@ -7,7 +7,7 @@ // import Quick import Nimble -import MCSwiftLayout +import PinLayout class PinPointCoordinatesSpec: QuickSpec { override func spec() { diff --git a/MCSwiftLayoutTests/RelativePositionSpec.swift b/MCSwiftLayoutTests/RelativePositionSpec.swift index 938ba414..5f7cfb28 100644 --- a/MCSwiftLayoutTests/RelativePositionSpec.swift +++ b/MCSwiftLayoutTests/RelativePositionSpec.swift @@ -7,7 +7,7 @@ // import Quick import Nimble -import MCSwiftLayout +import PinLayout class RelativePositionSpec: QuickSpec { override func spec() { diff --git a/MCSwiftLayout.xcodeproj/project.pbxproj b/PinLayout.xcodeproj/project.pbxproj similarity index 93% rename from MCSwiftLayout.xcodeproj/project.pbxproj rename to PinLayout.xcodeproj/project.pbxproj index cc0f0b50..dbab16e9 100644 --- a/MCSwiftLayout.xcodeproj/project.pbxproj +++ b/PinLayout.xcodeproj/project.pbxproj @@ -18,7 +18,7 @@ 2469C5041E75DB7600073BEE /* RectNimbleMatcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2469C5031E75DB7600073BEE /* RectNimbleMatcher.swift */; }; 246D36481E6C46F50050F202 /* PinPointCoordinatesSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 246D36471E6C46F50050F202 /* PinPointCoordinatesSpec.swift */; }; 2482908C1E78CFFC00667D08 /* RelativePositionSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */; }; - 249EFE841E64FB4C00165E39 /* MCSwiftLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 249EFE7A1E64FB4C00165E39 /* MCSwiftLayout.framework */; }; + 249EFE841E64FB4C00165E39 /* PinLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */; }; 249EFE891E64FB4C00165E39 /* MCSwiftLayoutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 249EFE881E64FB4C00165E39 /* MCSwiftLayoutTests.swift */; }; 249EFE8B1E64FB4C00165E39 /* MCSwiftLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; DF11A3711E833F03008B33E5 /* Types.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF11A3701E833F03008B33E5 /* Types.swift */; }; @@ -62,10 +62,10 @@ 2469C5031E75DB7600073BEE /* RectNimbleMatcher.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RectNimbleMatcher.swift; sourceTree = ""; }; 246D36471E6C46F50050F202 /* PinPointCoordinatesSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PinPointCoordinatesSpec.swift; sourceTree = ""; }; 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RelativePositionSpec.swift; sourceTree = ""; }; - 249EFE7A1E64FB4C00165E39 /* MCSwiftLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MCSwiftLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PinLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MCSwiftLayout.h; sourceTree = ""; }; 249EFE7E1E64FB4C00165E39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 249EFE831E64FB4C00165E39 /* MCSwiftLayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MCSwiftLayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 249EFE831E64FB4C00165E39 /* PinLayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PinLayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 249EFE881E64FB4C00165E39 /* MCSwiftLayoutTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MCSwiftLayoutTests.swift; sourceTree = ""; }; 249EFE8A1E64FB4C00165E39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DF11A3701E833F03008B33E5 /* Types.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Types.swift; sourceTree = ""; }; @@ -87,7 +87,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 249EFE841E64FB4C00165E39 /* MCSwiftLayout.framework in Frameworks */, + 249EFE841E64FB4C00165E39 /* PinLayout.framework in Frameworks */, 241962391E7F582C00A0466C /* Nimble.framework in Frameworks */, 2419623A1E7F582C00A0466C /* Quick.framework in Frameworks */, ); @@ -119,8 +119,8 @@ 249EFE7B1E64FB4C00165E39 /* Products */ = { isa = PBXGroup; children = ( - 249EFE7A1E64FB4C00165E39 /* MCSwiftLayout.framework */, - 249EFE831E64FB4C00165E39 /* MCSwiftLayoutTests.xctest */, + 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */, + 249EFE831E64FB4C00165E39 /* PinLayoutTests.xctest */, ); name = Products; sourceTree = ""; @@ -192,9 +192,9 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 249EFE791E64FB4C00165E39 /* MCSwiftLayout */ = { + 249EFE791E64FB4C00165E39 /* PinLayout */ = { isa = PBXNativeTarget; - buildConfigurationList = 249EFE8E1E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "MCSwiftLayout" */; + buildConfigurationList = 249EFE8E1E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "PinLayout" */; buildPhases = ( 249EFE751E64FB4C00165E39 /* Sources */, 249EFE761E64FB4C00165E39 /* Frameworks */, @@ -206,14 +206,14 @@ ); dependencies = ( ); - name = MCSwiftLayout; + name = PinLayout; productName = MCSwiftLayout; - productReference = 249EFE7A1E64FB4C00165E39 /* MCSwiftLayout.framework */; + productReference = 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */; productType = "com.apple.product-type.framework"; }; - 249EFE821E64FB4C00165E39 /* MCSwiftLayoutTests */ = { + 249EFE821E64FB4C00165E39 /* PinLayoutTests */ = { isa = PBXNativeTarget; - buildConfigurationList = 249EFE911E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "MCSwiftLayoutTests" */; + buildConfigurationList = 249EFE911E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "PinLayoutTests" */; buildPhases = ( 249EFE7F1E64FB4C00165E39 /* Sources */, 249EFE801E64FB4C00165E39 /* Frameworks */, @@ -225,9 +225,9 @@ dependencies = ( 249EFE861E64FB4C00165E39 /* PBXTargetDependency */, ); - name = MCSwiftLayoutTests; + name = PinLayoutTests; productName = MCSwiftLayoutTests; - productReference = 249EFE831E64FB4C00165E39 /* MCSwiftLayoutTests.xctest */; + productReference = 249EFE831E64FB4C00165E39 /* PinLayoutTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ @@ -253,7 +253,7 @@ }; }; }; - buildConfigurationList = 249EFE741E64FB4C00165E39 /* Build configuration list for PBXProject "MCSwiftLayout" */; + buildConfigurationList = 249EFE741E64FB4C00165E39 /* Build configuration list for PBXProject "PinLayout" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -265,8 +265,8 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 249EFE791E64FB4C00165E39 /* MCSwiftLayout */, - 249EFE821E64FB4C00165E39 /* MCSwiftLayoutTests */, + 249EFE791E64FB4C00165E39 /* PinLayout */, + 249EFE821E64FB4C00165E39 /* PinLayoutTests */, ); }; /* End PBXProject section */ @@ -338,7 +338,7 @@ /* Begin PBXTargetDependency section */ 249EFE861E64FB4C00165E39 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 249EFE791E64FB4C00165E39 /* MCSwiftLayout */; + target = 249EFE791E64FB4C00165E39 /* PinLayout */; targetProxy = 249EFE851E64FB4C00165E39 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -523,7 +523,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 249EFE741E64FB4C00165E39 /* Build configuration list for PBXProject "MCSwiftLayout" */ = { + 249EFE741E64FB4C00165E39 /* Build configuration list for PBXProject "PinLayout" */ = { isa = XCConfigurationList; buildConfigurations = ( 249EFE8C1E64FB4C00165E39 /* Debug */, @@ -532,7 +532,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 249EFE8E1E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "MCSwiftLayout" */ = { + 249EFE8E1E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "PinLayout" */ = { isa = XCConfigurationList; buildConfigurations = ( 249EFE8F1E64FB4C00165E39 /* Debug */, @@ -541,7 +541,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 249EFE911E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "MCSwiftLayoutTests" */ = { + 249EFE911E64FB4C00165E39 /* Build configuration list for PBXNativeTarget "PinLayoutTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 249EFE921E64FB4C00165E39 /* Debug */, diff --git a/MCSwiftLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme b/PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme similarity index 76% rename from MCSwiftLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme rename to PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme index a7ec325e..cf3f6613 100644 --- a/MCSwiftLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme +++ b/PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme @@ -15,9 +15,9 @@ + BuildableName = "PinLayout.framework" + BlueprintName = "PinLayout" + ReferencedContainer = "container:PinLayout.xcodeproj"> @@ -34,9 +34,9 @@ + BuildableName = "PinLayoutTests.xctest" + BlueprintName = "PinLayoutTests" + ReferencedContainer = "container:PinLayout.xcodeproj"> @@ -44,9 +44,9 @@ + BuildableName = "PinLayout.framework" + BlueprintName = "PinLayout" + ReferencedContainer = "container:PinLayout.xcodeproj"> @@ -66,9 +66,9 @@ + BuildableName = "PinLayout.framework" + BlueprintName = "PinLayout" + ReferencedContainer = "container:PinLayout.xcodeproj"> @@ -84,9 +84,9 @@ + BuildableName = "PinLayout.framework" + BlueprintName = "PinLayout" + ReferencedContainer = "container:PinLayout.xcodeproj"> diff --git a/Supporting Files/MCSwiftLayout.h b/Supporting Files/MCSwiftLayout.h index f8fd9979..deda20c1 100644 --- a/Supporting Files/MCSwiftLayout.h +++ b/Supporting Files/MCSwiftLayout.h @@ -1,6 +1,6 @@ // -// MCSwiftLayout.h -// MCSwiftLayout +// PinLayout.h +// PinLayout // // Created by DION, Luc (MTL) on 2017-02-27. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. @@ -8,11 +8,11 @@ #import -//! Project version number for MCSwiftLayout. -FOUNDATION_EXPORT double MCSwiftLayoutVersionNumber; +//! Project version number for PinLayout. +FOUNDATION_EXPORT double PinLayoutVersionNumber; -//! Project version string for MCSwiftLayout. -FOUNDATION_EXPORT const unsigned char MCSwiftLayoutVersionString[]; +//! Project version string for PinLayout. +FOUNDATION_EXPORT const unsigned char PinLayoutVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import From 927320e88bb2d55909703ca579d384485a1a2791 Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 19:24:27 -0400 Subject: [PATCH 2/7] Part2 --- MCSwiftLayoutTests/AdjustSizeSpec.swift | 2 +- MCSwiftLayoutTests/MarginsAndInsetsSpec.swift | 2 +- MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift | 2 +- ...tLayoutTests.swift => PinLayoutTests.swift} | 6 +++--- .../PinPointCoordinatesSpec.swift | 2 +- MCSwiftLayoutTests/RectNimbleMatcher.swift | 2 +- MCSwiftLayoutTests/RelativePositionSpec.swift | 2 +- PinLayout.xcodeproj/project.pbxproj | 18 +++++++++--------- .../Extensions/UIView+PinLayout.swift | 2 +- .../Helpers/Coordinates.swift | 2 +- {MCSwiftLayout => PinLayout}/PinLayout.swift | 2 +- .../PinLayoutImpl.swift | 0 {MCSwiftLayout => PinLayout}/Types.swift | 2 +- scripts/synx.sh | 2 +- 14 files changed, 23 insertions(+), 23 deletions(-) rename MCSwiftLayoutTests/{MCSwiftLayoutTests.swift => PinLayoutTests.swift} (91%) rename {MCSwiftLayout => PinLayout}/Extensions/UIView+PinLayout.swift (99%) rename {MCSwiftLayout => PinLayout}/Helpers/Coordinates.swift (99%) rename {MCSwiftLayout => PinLayout}/PinLayout.swift (99%) rename {MCSwiftLayout => PinLayout}/PinLayoutImpl.swift (100%) rename {MCSwiftLayout => PinLayout}/Types.swift (99%) diff --git a/MCSwiftLayoutTests/AdjustSizeSpec.swift b/MCSwiftLayoutTests/AdjustSizeSpec.swift index 4d1243af..80c82272 100644 --- a/MCSwiftLayoutTests/AdjustSizeSpec.swift +++ b/MCSwiftLayoutTests/AdjustSizeSpec.swift @@ -1,6 +1,6 @@ // // AdjustSizeSpec.swift -// MCSwiftLayout +// PinLayout // // Created by DION, Luc (MTL) on 2017-03-05. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift b/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift index af13b156..8b80d1a7 100644 --- a/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift +++ b/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift @@ -1,6 +1,6 @@ // // MarginsAndInsetsSpec.swift -// MCSwiftLayout +// PinLayout // // Created by DION, Luc (MTL) on 2017-03-05. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift b/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift index 93077116..9b81213c 100644 --- a/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift +++ b/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift @@ -1,6 +1,6 @@ // // PinEdgeCoordinateSpec.swift -// MCSwiftLayout +// PinLayout // // Created by DION, Luc (MTL) on 2017-03-05. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutTests/MCSwiftLayoutTests.swift b/MCSwiftLayoutTests/PinLayoutTests.swift similarity index 91% rename from MCSwiftLayoutTests/MCSwiftLayoutTests.swift rename to MCSwiftLayoutTests/PinLayoutTests.swift index 8e93c23c..0968f7f2 100644 --- a/MCSwiftLayoutTests/MCSwiftLayoutTests.swift +++ b/MCSwiftLayoutTests/PinLayoutTests.swift @@ -1,6 +1,6 @@ // -// MCSwiftLayoutTests.swift -// MCSwiftLayoutTests +// PinLayout.swift +// PinLayoutTests // // Created by DION, Luc (MTL) on 2017-02-27. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. @@ -9,7 +9,7 @@ import XCTest @testable import PinLayout -class MCSwiftLayoutTests: XCTestCase { +class PinLayoutTests: XCTestCase { var viewController: UIViewController! var rootView: UIView! diff --git a/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift b/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift index 131cf136..dee3e9a6 100644 --- a/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift +++ b/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift @@ -1,6 +1,6 @@ // // PinPointCoordinatesSpec.swift -// MCSwiftLayout +// PinLayout // // Created by DION, Luc (MTL) on 2017-03-05. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutTests/RectNimbleMatcher.swift b/MCSwiftLayoutTests/RectNimbleMatcher.swift index 48cbd52b..9fb2ada6 100644 --- a/MCSwiftLayoutTests/RectNimbleMatcher.swift +++ b/MCSwiftLayoutTests/RectNimbleMatcher.swift @@ -1,6 +1,6 @@ // // RectNimbleMatcher.swift -// MCSwiftLayout +// PinLayout // // Created by DION, Luc (MTL) on 2017-03-12. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutTests/RelativePositionSpec.swift b/MCSwiftLayoutTests/RelativePositionSpec.swift index 5f7cfb28..784f57d4 100644 --- a/MCSwiftLayoutTests/RelativePositionSpec.swift +++ b/MCSwiftLayoutTests/RelativePositionSpec.swift @@ -1,6 +1,6 @@ // // RelativePositionSpec.swift -// MCSwiftLayout +// PinLayout // // Created by DION, Luc (MTL) on 2017-03-05. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/PinLayout.xcodeproj/project.pbxproj b/PinLayout.xcodeproj/project.pbxproj index dbab16e9..d4caf6f0 100644 --- a/PinLayout.xcodeproj/project.pbxproj +++ b/PinLayout.xcodeproj/project.pbxproj @@ -19,7 +19,7 @@ 246D36481E6C46F50050F202 /* PinPointCoordinatesSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 246D36471E6C46F50050F202 /* PinPointCoordinatesSpec.swift */; }; 2482908C1E78CFFC00667D08 /* RelativePositionSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */; }; 249EFE841E64FB4C00165E39 /* PinLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */; }; - 249EFE891E64FB4C00165E39 /* MCSwiftLayoutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 249EFE881E64FB4C00165E39 /* MCSwiftLayoutTests.swift */; }; + 249EFE891E64FB4C00165E39 /* PinLayoutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 249EFE881E64FB4C00165E39 /* PinLayoutTests.swift */; }; 249EFE8B1E64FB4C00165E39 /* MCSwiftLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; DF11A3711E833F03008B33E5 /* Types.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF11A3701E833F03008B33E5 /* Types.swift */; }; DF11A3781E834B32008B33E5 /* UIView+PinLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF11A3771E834B32008B33E5 /* UIView+PinLayout.swift */; }; @@ -66,7 +66,7 @@ 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MCSwiftLayout.h; sourceTree = ""; }; 249EFE7E1E64FB4C00165E39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 249EFE831E64FB4C00165E39 /* PinLayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PinLayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 249EFE881E64FB4C00165E39 /* MCSwiftLayoutTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MCSwiftLayoutTests.swift; sourceTree = ""; }; + 249EFE881E64FB4C00165E39 /* PinLayoutTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PinLayoutTests.swift; sourceTree = ""; }; 249EFE8A1E64FB4C00165E39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; DF11A3701E833F03008B33E5 /* Types.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Types.swift; sourceTree = ""; }; DF11A3771E834B32008B33E5 /* UIView+PinLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIView+PinLayout.swift"; sourceTree = ""; }; @@ -108,7 +108,7 @@ 249EFE701E64FB4C00165E39 = { isa = PBXGroup; children = ( - 249EFE7C1E64FB4C00165E39 /* MCSwiftLayout */, + 249EFE7C1E64FB4C00165E39 /* PinLayout */, 249EFE871E64FB4C00165E39 /* MCSwiftLayoutTests */, 249EFE7B1E64FB4C00165E39 /* Products */, DF11A3741E834181008B33E5 /* Supporting Files */, @@ -125,7 +125,7 @@ name = Products; sourceTree = ""; }; - 249EFE7C1E64FB4C00165E39 /* MCSwiftLayout */ = { + 249EFE7C1E64FB4C00165E39 /* PinLayout */ = { isa = PBXGroup; children = ( DFC97CA61E8A8F2C001545D5 /* PinLayout.swift */, @@ -134,7 +134,7 @@ DF11A3751E834194008B33E5 /* Extensions */, DF11A3761E8341A2008B33E5 /* Helpers */, ); - path = MCSwiftLayout; + path = PinLayout; sourceTree = ""; }; 249EFE871E64FB4C00165E39 /* MCSwiftLayoutTests */ = { @@ -143,7 +143,7 @@ 2469C4FF1E75D74000073BEE /* AdjustSizeSpec.swift */, 2469C5011E75D88500073BEE /* BasicView.swift */, 249EFE8A1E64FB4C00165E39 /* Info.plist */, - 249EFE881E64FB4C00165E39 /* MCSwiftLayoutTests.swift */, + 249EFE881E64FB4C00165E39 /* PinLayoutTests.swift */, 244C6E141E776A0C0074FC74 /* MarginsAndInsetsSpec.swift */, 2469C4FB1E74855D00073BEE /* PinEdgeCoordinateSpec.swift */, 246D36471E6C46F50050F202 /* PinPointCoordinatesSpec.swift */, @@ -329,7 +329,7 @@ 2469C5021E75D88500073BEE /* BasicView.swift in Sources */, 246D36481E6C46F50050F202 /* PinPointCoordinatesSpec.swift in Sources */, 244C6E151E776A0C0074FC74 /* MarginsAndInsetsSpec.swift in Sources */, - 249EFE891E64FB4C00165E39 /* MCSwiftLayoutTests.swift in Sources */, + 249EFE891E64FB4C00165E39 /* PinLayoutTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -457,7 +457,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayout; + PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayout; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -479,7 +479,7 @@ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayout; + PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayout; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_VERSION = 3.0; diff --git a/MCSwiftLayout/Extensions/UIView+PinLayout.swift b/PinLayout/Extensions/UIView+PinLayout.swift similarity index 99% rename from MCSwiftLayout/Extensions/UIView+PinLayout.swift rename to PinLayout/Extensions/UIView+PinLayout.swift index 08c5fe28..6b44de49 100644 --- a/MCSwiftLayout/Extensions/UIView+PinLayout.swift +++ b/PinLayout/Extensions/UIView+PinLayout.swift @@ -1,6 +1,6 @@ // // UIView+PinLayout.swift -// MCSwiftLayout +// PinLayout // // Created by Luc Dion on 2017-03-22. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayout/Helpers/Coordinates.swift b/PinLayout/Helpers/Coordinates.swift similarity index 99% rename from MCSwiftLayout/Helpers/Coordinates.swift rename to PinLayout/Helpers/Coordinates.swift index 8dcdf0d9..91e2663e 100644 --- a/MCSwiftLayout/Helpers/Coordinates.swift +++ b/PinLayout/Helpers/Coordinates.swift @@ -1,6 +1,6 @@ // // View.swift -// MCSwiftLayout +// PinLayout // // Created by Luc Dion on 2017-03-22. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayout/PinLayout.swift b/PinLayout/PinLayout.swift similarity index 99% rename from MCSwiftLayout/PinLayout.swift rename to PinLayout/PinLayout.swift index 3eaf217d..996d13ec 100644 --- a/MCSwiftLayout/PinLayout.swift +++ b/PinLayout/PinLayout.swift @@ -1,6 +1,6 @@ // // PinLayout.swift -// MCSwiftLayout +// PinLayout // // Created by Luc Dion on 2017-03-28. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayout/PinLayoutImpl.swift b/PinLayout/PinLayoutImpl.swift similarity index 100% rename from MCSwiftLayout/PinLayoutImpl.swift rename to PinLayout/PinLayoutImpl.swift diff --git a/MCSwiftLayout/Types.swift b/PinLayout/Types.swift similarity index 99% rename from MCSwiftLayout/Types.swift rename to PinLayout/Types.swift index c8db215c..816601cd 100644 --- a/MCSwiftLayout/Types.swift +++ b/PinLayout/Types.swift @@ -1,6 +1,6 @@ // // Types.swift -// MCSwiftLayout +// PinLayout // // Created by Luc Dion on 2017-03-22. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/scripts/synx.sh b/scripts/synx.sh index 766decfb..cb33205b 100755 --- a/scripts/synx.sh +++ b/scripts/synx.sh @@ -1,2 +1,2 @@ #!/bin/bash -synx --no-sort-by-name MCSwiftLayout.xcodeproj +synx --no-sort-by-name PinLayout.xcodeproj From e835847fc475f02e8077918a76129441bebd4bd6 Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 19:26:06 -0400 Subject: [PATCH 3/7] Part3 --- PinLayout.xcodeproj/project.pbxproj | 11 +- .../xcschemes/MCSwiftLayout.xcscheme | 100 ------------------ .../AdjustSizeSpec.swift | 0 .../BasicView.swift | 0 .../Info.plist | 0 .../MarginsAndInsetsSpec.swift | 0 .../PinEdgeCoordinateSpec.swift | 0 .../PinLayoutTests.swift | 0 .../PinPointCoordinatesSpec.swift | 0 .../RectNimbleMatcher.swift | 0 .../RelativePositionSpec.swift | 0 11 files changed, 6 insertions(+), 105 deletions(-) delete mode 100644 PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme rename {MCSwiftLayoutTests => PinLayoutTests}/AdjustSizeSpec.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/BasicView.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/Info.plist (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/MarginsAndInsetsSpec.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/PinEdgeCoordinateSpec.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/PinLayoutTests.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/PinPointCoordinatesSpec.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/RectNimbleMatcher.swift (100%) rename {MCSwiftLayoutTests => PinLayoutTests}/RelativePositionSpec.swift (100%) diff --git a/PinLayout.xcodeproj/project.pbxproj b/PinLayout.xcodeproj/project.pbxproj index d4caf6f0..117c64a1 100644 --- a/PinLayout.xcodeproj/project.pbxproj +++ b/PinLayout.xcodeproj/project.pbxproj @@ -109,7 +109,7 @@ isa = PBXGroup; children = ( 249EFE7C1E64FB4C00165E39 /* PinLayout */, - 249EFE871E64FB4C00165E39 /* MCSwiftLayoutTests */, + 249EFE871E64FB4C00165E39 /* PinLayoutTests */, 249EFE7B1E64FB4C00165E39 /* Products */, DF11A3741E834181008B33E5 /* Supporting Files */, 138A1F602470415292B7194B /* Frameworks */, @@ -137,7 +137,7 @@ path = PinLayout; sourceTree = ""; }; - 249EFE871E64FB4C00165E39 /* MCSwiftLayoutTests */ = { + 249EFE871E64FB4C00165E39 /* PinLayoutTests */ = { isa = PBXGroup; children = ( 2469C4FF1E75D74000073BEE /* AdjustSizeSpec.swift */, @@ -150,7 +150,8 @@ 2469C5031E75DB7600073BEE /* RectNimbleMatcher.swift */, 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */, ); - path = MCSwiftLayoutTests; + name = PinLayoutTests; + path = PinLayoutTests; sourceTree = ""; }; DF11A3741E834181008B33E5 /* Supporting Files */ = { @@ -495,7 +496,7 @@ "$(inherited)", "$(PROJECT_DIR)/Carthage/Build/iOS", ); - INFOPLIST_FILE = MCSwiftLayoutTests/Info.plist; + INFOPLIST_FILE = PinLayoutTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayoutTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -512,7 +513,7 @@ "$(inherited)", "$(PROJECT_DIR)/Carthage/Build/iOS", ); - INFOPLIST_FILE = MCSwiftLayoutTests/Info.plist; + INFOPLIST_FILE = PinLayoutTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayoutTests; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme b/PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme deleted file mode 100644 index cf3f6613..00000000 --- a/PinLayout.xcodeproj/xcshareddata/xcschemes/MCSwiftLayout.xcscheme +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/MCSwiftLayoutTests/AdjustSizeSpec.swift b/PinLayoutTests/AdjustSizeSpec.swift similarity index 100% rename from MCSwiftLayoutTests/AdjustSizeSpec.swift rename to PinLayoutTests/AdjustSizeSpec.swift diff --git a/MCSwiftLayoutTests/BasicView.swift b/PinLayoutTests/BasicView.swift similarity index 100% rename from MCSwiftLayoutTests/BasicView.swift rename to PinLayoutTests/BasicView.swift diff --git a/MCSwiftLayoutTests/Info.plist b/PinLayoutTests/Info.plist similarity index 100% rename from MCSwiftLayoutTests/Info.plist rename to PinLayoutTests/Info.plist diff --git a/MCSwiftLayoutTests/MarginsAndInsetsSpec.swift b/PinLayoutTests/MarginsAndInsetsSpec.swift similarity index 100% rename from MCSwiftLayoutTests/MarginsAndInsetsSpec.swift rename to PinLayoutTests/MarginsAndInsetsSpec.swift diff --git a/MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift b/PinLayoutTests/PinEdgeCoordinateSpec.swift similarity index 100% rename from MCSwiftLayoutTests/PinEdgeCoordinateSpec.swift rename to PinLayoutTests/PinEdgeCoordinateSpec.swift diff --git a/MCSwiftLayoutTests/PinLayoutTests.swift b/PinLayoutTests/PinLayoutTests.swift similarity index 100% rename from MCSwiftLayoutTests/PinLayoutTests.swift rename to PinLayoutTests/PinLayoutTests.swift diff --git a/MCSwiftLayoutTests/PinPointCoordinatesSpec.swift b/PinLayoutTests/PinPointCoordinatesSpec.swift similarity index 100% rename from MCSwiftLayoutTests/PinPointCoordinatesSpec.swift rename to PinLayoutTests/PinPointCoordinatesSpec.swift diff --git a/MCSwiftLayoutTests/RectNimbleMatcher.swift b/PinLayoutTests/RectNimbleMatcher.swift similarity index 100% rename from MCSwiftLayoutTests/RectNimbleMatcher.swift rename to PinLayoutTests/RectNimbleMatcher.swift diff --git a/MCSwiftLayoutTests/RelativePositionSpec.swift b/PinLayoutTests/RelativePositionSpec.swift similarity index 100% rename from MCSwiftLayoutTests/RelativePositionSpec.swift rename to PinLayoutTests/RelativePositionSpec.swift From 2c585764f43a12e915a6750e4f5a9df85e97c279 Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 19:26:18 -0400 Subject: [PATCH 4/7] Part4 --- .../xcshareddata/xcschemes/PinLayout.xcscheme | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout.xcscheme diff --git a/PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout.xcscheme b/PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout.xcscheme new file mode 100644 index 00000000..cf3f6613 --- /dev/null +++ b/PinLayout.xcodeproj/xcshareddata/xcschemes/PinLayout.xcscheme @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 84b5a9e53905ec04c062b379782643e0f364691d Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 19:43:31 -0400 Subject: [PATCH 5/7] Part5 --- .codeclimate.yml | 2 +- .tailor.yml | 4 +- .travis.yml | 8 +- .../contents.xcworkspacedata | 7 -- .../project.pbxproj | 102 +++++++++--------- .../AppDelegate.swift | 4 +- .../AppIcon.appiconset/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../Domain/Expect.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../Supporting Files/Info.plist | 0 .../UI/Common/BasicView.swift | 0 .../UI/Main/MenuView.swift | 0 .../UI/Main/MenuViewController.swift | 0 .../BothEdgesSnappedView.swift | 2 +- .../BothEdgesSnappedViewController.swift | 0 .../ChainedLayoutView/ChainedLayoutView.swift | 0 .../ChainedLayoutViewController.swift | 0 .../MarginsAndInsetsView.swift | 2 +- .../MarginsAndInsetsViewController.swift | 0 .../MarginsAndPaddingsLeftRightView.swift | 0 ...nsAndPaddingsLeftRightViewController.swift | 0 .../MarginsAndPaddingsLeftWidthView.swift | 0 ...nsAndPaddingsLeftWidthViewController.swift | 0 .../MultiRelativeView/MultiRelativeView.swift | 0 .../MultiRelativeViewController.swift | 0 .../Tests/PinScrolling/PinScrollingView.swift | 0 .../PinScrollingViewController.swift | 0 .../UI/Tests/RelativeView/RelativeView.swift | 1 + .../RelativeView/RelativeViewController.swift | 0 .../ValidateConflictsView.swift | 0 .../ValidateConflictsViewController.swift | 0 .../ViewExtensionsPositionningView.swift | 1 + ...ExtensionsPositionningViewController.swift | 0 MCSwiftLayoutSample/Podfile | 10 +- MCSwiftLayoutSample/Podfile.lock | 4 +- PinLayout.xcodeproj/project.pbxproj | 19 ++-- .../{MCSwiftLayout.h => PinLayout.h} | 2 +- 39 files changed, 81 insertions(+), 87 deletions(-) delete mode 100644 MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename MCSwiftLayoutSample/{MCSwiftLayoutSample.xcodeproj => PinLayoutSample.xcodeproj}/project.pbxproj (86%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/AppDelegate.swift (93%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/Base.lproj/LaunchScreen.storyboard (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/Domain/Expect.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/Supporting Files/Base.lproj/LaunchScreen.storyboard (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/Supporting Files/Info.plist (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Common/BasicView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Main/MenuView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Main/MenuViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift (99%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift (99%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MultiRelativeView/MultiRelativeView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/PinScrolling/PinScrollingView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/PinScrolling/PinScrollingViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/RelativeView/RelativeView.swift (99%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/RelativeView/RelativeViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift (100%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift (99%) rename MCSwiftLayoutSample/{MCSwiftLayoutSample => PinLayoutSample}/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift (100%) rename Supporting Files/{MCSwiftLayout.h => PinLayout.h} (85%) diff --git a/.codeclimate.yml b/.codeclimate.yml index 3a52babd..380861b7 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -7,7 +7,7 @@ ratings: - "**.swift" exclude_paths: - - MCSwiftLayoutTests + - PinLayoutTests - MCSwiftLayoutSample - Carthage - Source/Pods diff --git a/.tailor.yml b/.tailor.yml index 1fe48c37..d827d064 100644 --- a/.tailor.yml +++ b/.tailor.yml @@ -1,8 +1,8 @@ include: - - MCSwiftLayout + - PinLayout exclude: - - MCSwiftLayoutTests + - PinLayoutTests - MCSwiftLayoutSample - Carthage - Source/Pods diff --git a/.travis.yml b/.travis.yml index be96f1e9..fcc6bc10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: objective-c osx_image: xcode8 -xcode_project: MCSwiftLayout.xcodeproj -xcode_scheme: MCSwiftLayout +xcode_project: PinLayout.xcodeproj +xcode_scheme: PinLayout xcode_sdk: iphonesimulator9.3 env: global: @@ -12,8 +12,8 @@ before_install: - ./install-dependencies.sh script: xcodebuild - -project MCSwiftLayout.xcodeproj - -scheme "MCSwiftLayout" + -project PinLayout.xcodeproj + -scheme "PinLayout" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6' -enableCodeCoverage YES diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 262fb27a..00000000 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.pbxproj b/MCSwiftLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj similarity index 86% rename from MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.pbxproj rename to MCSwiftLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj index e1e61b11..c3bd1728 100644 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample.xcodeproj/project.pbxproj +++ b/MCSwiftLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj @@ -7,8 +7,8 @@ objects = { /* Begin PBXBuildFile section */ - 2439CC281E6658C3003326FB /* MCSwiftLayout.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 2439CC241E665858003326FB /* MCSwiftLayout.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 2439CC2B1E6658CC003326FB /* MCSwiftLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2439CC241E665858003326FB /* MCSwiftLayout.framework */; }; + 2439CC281E6658C3003326FB /* ReferenceProxy in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 2439CC241E665858003326FB /* PinLayout.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 2439CC2B1E6658CC003326FB /* ReferenceProxy in Frameworks */ = {isa = PBXBuildFile; fileRef = 2439CC241E665858003326FB /* PinLayout.framework */; }; 2439CC351E665BF6003326FB /* MenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2439CC331E665BF6003326FB /* MenuView.swift */; }; 2439CC361E665BF6003326FB /* MenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2439CC341E665BF6003326FB /* MenuViewController.swift */; }; 2439CC4B1E665C6B003326FB /* BasicView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2439CC381E665C6B003326FB /* BasicView.swift */; }; @@ -34,7 +34,7 @@ 24E6547A1E68F27D00A72A8B /* BothEdgesSnappedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24E654781E68F27D00A72A8B /* BothEdgesSnappedView.swift */; }; 24E6547B1E68F27D00A72A8B /* BothEdgesSnappedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24E654791E68F27D00A72A8B /* BothEdgesSnappedViewController.swift */; }; 24E654821E69041B00A72A8B /* Expect.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24E654811E69041B00A72A8B /* Expect.swift */; }; - DE6C3D736B571B80E207DF6A /* Pods_MCSwiftLayoutSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AAD69688AA2A3F0994F3074E /* Pods_MCSwiftLayoutSample.framework */; }; + DE6C3D736B571B80E207DF6A /* Pods_PinLayoutSample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AAD69688AA2A3F0994F3074E /* Pods_PinLayoutSample.framework */; }; DF66F9DA1E8493E000ADB8D5 /* PinScrollingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF66F9D81E8493E000ADB8D5 /* PinScrollingView.swift */; }; DF66F9DB1E8493E000ADB8D5 /* PinScrollingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF66F9D91E8493E000ADB8D5 /* PinScrollingViewController.swift */; }; /* End PBXBuildFile section */ @@ -42,24 +42,24 @@ /* Begin PBXContainerItemProxy section */ 2439CC231E665858003326FB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 2439CC1E1E665858003326FB /* MCSwiftLayout.xcodeproj */; + containerPortal = 2439CC1E1E665858003326FB /* PinLayout.xcodeproj */; proxyType = 2; remoteGlobalIDString = 249EFE7A1E64FB4C00165E39; - remoteInfo = MCSwiftLayout; + remoteInfo = PinLayout; }; 2439CC251E665858003326FB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 2439CC1E1E665858003326FB /* MCSwiftLayout.xcodeproj */; + containerPortal = 2439CC1E1E665858003326FB /* PinLayout.xcodeproj */; proxyType = 2; remoteGlobalIDString = 249EFE831E64FB4C00165E39; - remoteInfo = MCSwiftLayoutTests; + remoteInfo = PinLayoutTests; }; 2439CC291E6658C3003326FB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 2439CC1E1E665858003326FB /* MCSwiftLayout.xcodeproj */; + containerPortal = 2439CC1E1E665858003326FB /* PinLayout.xcodeproj */; proxyType = 1; remoteGlobalIDString = 249EFE791E64FB4C00165E39; - remoteInfo = MCSwiftLayout; + remoteInfo = PinLayout; }; /* End PBXContainerItemProxy section */ @@ -70,7 +70,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - 2439CC281E6658C3003326FB /* MCSwiftLayout.framework in Embed Frameworks */, + 2439CC281E6658C3003326FB /* ReferenceProxy in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -78,7 +78,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 2439CC1E1E665858003326FB /* MCSwiftLayout.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MCSwiftLayout.xcodeproj; path = ../MCSwiftLayout.xcodeproj; sourceTree = ""; }; + 2439CC1E1E665858003326FB /* PinLayout.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PinLayout.xcodeproj; path = ../PinLayout.xcodeproj; sourceTree = ""; }; 2439CC331E665BF6003326FB /* MenuView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MenuView.swift; sourceTree = ""; }; 2439CC341E665BF6003326FB /* MenuViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MenuViewController.swift; sourceTree = ""; }; 2439CC381E665C6B003326FB /* BasicView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BasicView.swift; sourceTree = ""; }; @@ -98,7 +98,7 @@ 2439CC461E665C6B003326FB /* ValidateConflictsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ValidateConflictsViewController.swift; sourceTree = ""; }; 244C6E181E776ADB0074FC74 /* MarginsAndInsetsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MarginsAndInsetsView.swift; sourceTree = ""; }; 244C6E191E776ADB0074FC74 /* MarginsAndInsetsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MarginsAndInsetsViewController.swift; sourceTree = ""; }; - 249EFE3F1E64FAFE00165E39 /* MCSwiftLayoutSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MCSwiftLayoutSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 249EFE3F1E64FAFE00165E39 /* PinLayoutSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PinLayoutSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 249EFE421E64FAFE00165E39 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 249EFE491E64FAFE00165E39 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 249EFE4C1E64FAFE00165E39 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; @@ -106,11 +106,11 @@ 24E654781E68F27D00A72A8B /* BothEdgesSnappedView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BothEdgesSnappedView.swift; sourceTree = ""; }; 24E654791E68F27D00A72A8B /* BothEdgesSnappedViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BothEdgesSnappedViewController.swift; sourceTree = ""; }; 24E654811E69041B00A72A8B /* Expect.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Expect.swift; sourceTree = ""; }; - AAD69688AA2A3F0994F3074E /* Pods_MCSwiftLayoutSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MCSwiftLayoutSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AAD69688AA2A3F0994F3074E /* Pods_PinLayoutSample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PinLayoutSample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; DF66F9D81E8493E000ADB8D5 /* PinScrollingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PinScrollingView.swift; path = PinScrolling/PinScrollingView.swift; sourceTree = ""; }; DF66F9D91E8493E000ADB8D5 /* PinScrollingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PinScrollingViewController.swift; path = PinScrolling/PinScrollingViewController.swift; sourceTree = ""; }; - F121E291CADD796B007C04BB /* Pods-MCSwiftLayoutSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MCSwiftLayoutSample.release.xcconfig"; path = "Pods/Target Support Files/Pods-MCSwiftLayoutSample/Pods-MCSwiftLayoutSample.release.xcconfig"; sourceTree = ""; }; - F1ACB0EACBD84B57B50D472D /* Pods-MCSwiftLayoutSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MCSwiftLayoutSample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MCSwiftLayoutSample/Pods-MCSwiftLayoutSample.debug.xcconfig"; sourceTree = ""; }; + F121E291CADD796B007C04BB /* Pods-PinLayoutSample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PinLayoutSample.release.xcconfig"; path = "Pods/Target Support Files/Pods-PinLayoutSample/Pods-PinLayoutSample.release.xcconfig"; sourceTree = ""; }; + F1ACB0EACBD84B57B50D472D /* Pods-PinLayoutSample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PinLayoutSample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PinLayoutSample/Pods-PinLayoutSample.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -118,8 +118,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 2439CC2B1E6658CC003326FB /* MCSwiftLayout.framework in Frameworks */, - DE6C3D736B571B80E207DF6A /* Pods_MCSwiftLayoutSample.framework in Frameworks */, + 2439CC2B1E6658CC003326FB /* ReferenceProxy in Frameworks */, + DE6C3D736B571B80E207DF6A /* Pods_PinLayoutSample.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -129,7 +129,7 @@ 160FB83905049FCEDD18DC8A /* Frameworks */ = { isa = PBXGroup; children = ( - AAD69688AA2A3F0994F3074E /* Pods_MCSwiftLayoutSample.framework */, + AAD69688AA2A3F0994F3074E /* Pods_PinLayoutSample.framework */, ); name = Frameworks; sourceTree = ""; @@ -137,8 +137,8 @@ 2439CC1F1E665858003326FB /* Products */ = { isa = PBXGroup; children = ( - 2439CC241E665858003326FB /* MCSwiftLayout.framework */, - 2439CC261E665858003326FB /* MCSwiftLayoutTests.xctest */, + 2439CC241E665858003326FB /* PinLayout.framework */, + 2439CC261E665858003326FB /* PinLayoutTests.xctest */, ); name = Products; sourceTree = ""; @@ -273,22 +273,22 @@ isa = PBXGroup; children = ( 160FB83905049FCEDD18DC8A /* Frameworks */, - 249EFE411E64FAFE00165E39 /* MCSwiftLayoutSample */, + 249EFE411E64FAFE00165E39 /* PinLayoutSample */, F143180314A617EFD07C5709 /* Pods */, 249EFE401E64FAFE00165E39 /* Products */, - 2439CC1E1E665858003326FB /* MCSwiftLayout.xcodeproj */, + 2439CC1E1E665858003326FB /* PinLayout.xcodeproj */, ); sourceTree = ""; }; 249EFE401E64FAFE00165E39 /* Products */ = { isa = PBXGroup; children = ( - 249EFE3F1E64FAFE00165E39 /* MCSwiftLayoutSample.app */, + 249EFE3F1E64FAFE00165E39 /* PinLayoutSample.app */, ); name = Products; sourceTree = ""; }; - 249EFE411E64FAFE00165E39 /* MCSwiftLayoutSample */ = { + 249EFE411E64FAFE00165E39 /* PinLayoutSample */ = { isa = PBXGroup; children = ( 24E654801E69040000A72A8B /* Domain */, @@ -296,7 +296,7 @@ 2439CC321E665BE3003326FB /* UI */, 249EFE421E64FAFE00165E39 /* AppDelegate.swift */, ); - path = MCSwiftLayoutSample; + path = PinLayoutSample; sourceTree = ""; }; 24E654761E68F20400A72A8B /* BothEdgesSnapped */ = { @@ -328,8 +328,8 @@ F143180314A617EFD07C5709 /* Pods */ = { isa = PBXGroup; children = ( - F1ACB0EACBD84B57B50D472D /* Pods-MCSwiftLayoutSample.debug.xcconfig */, - F121E291CADD796B007C04BB /* Pods-MCSwiftLayoutSample.release.xcconfig */, + F1ACB0EACBD84B57B50D472D /* Pods-PinLayoutSample.debug.xcconfig */, + F121E291CADD796B007C04BB /* Pods-PinLayoutSample.release.xcconfig */, ); name = Pods; sourceTree = ""; @@ -337,9 +337,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 249EFE3E1E64FAFE00165E39 /* MCSwiftLayoutSample */ = { + 249EFE3E1E64FAFE00165E39 /* PinLayoutSample */ = { isa = PBXNativeTarget; - buildConfigurationList = 249EFE671E64FAFE00165E39 /* Build configuration list for PBXNativeTarget "MCSwiftLayoutSample" */; + buildConfigurationList = 249EFE671E64FAFE00165E39 /* Build configuration list for PBXNativeTarget "PinLayoutSample" */; buildPhases = ( DDE1EE639E8C959FEBC41FDC /* [CP] Check Pods Manifest.lock */, 249EFE3B1E64FAFE00165E39 /* Sources */, @@ -355,9 +355,9 @@ dependencies = ( 2439CC2A1E6658C3003326FB /* PBXTargetDependency */, ); - name = MCSwiftLayoutSample; - productName = MCSwiftLayoutSample; - productReference = 249EFE3F1E64FAFE00165E39 /* MCSwiftLayoutSample.app */; + name = PinLayoutSample; + productName = PinLayoutSample; + productReference = 249EFE3F1E64FAFE00165E39 /* PinLayoutSample.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -377,7 +377,7 @@ }; }; }; - buildConfigurationList = 249EFE3A1E64FAFE00165E39 /* Build configuration list for PBXProject "MCSwiftLayoutSample" */; + buildConfigurationList = 249EFE3A1E64FAFE00165E39 /* Build configuration list for PBXProject "PinLayoutSample" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -391,28 +391,28 @@ projectReferences = ( { ProductGroup = 2439CC1F1E665858003326FB /* Products */; - ProjectRef = 2439CC1E1E665858003326FB /* MCSwiftLayout.xcodeproj */; + ProjectRef = 2439CC1E1E665858003326FB /* PinLayout.xcodeproj */; }, ); projectRoot = ""; targets = ( - 249EFE3E1E64FAFE00165E39 /* MCSwiftLayoutSample */, + 249EFE3E1E64FAFE00165E39 /* PinLayoutSample */, ); }; /* End PBXProject section */ /* Begin PBXReferenceProxy section */ - 2439CC241E665858003326FB /* MCSwiftLayout.framework */ = { + 2439CC241E665858003326FB /* PinLayout.framework */ = { isa = PBXReferenceProxy; fileType = wrapper.framework; - path = MCSwiftLayout.framework; + path = PinLayout.framework; remoteRef = 2439CC231E665858003326FB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 2439CC261E665858003326FB /* MCSwiftLayoutTests.xctest */ = { + 2439CC261E665858003326FB /* PinLayoutTests.xctest */ = { isa = PBXReferenceProxy; fileType = wrapper.cfbundle; - path = MCSwiftLayoutTests.xctest; + path = PinLayoutTests.xctest; remoteRef = 2439CC251E665858003326FB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -457,7 +457,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MCSwiftLayoutSample/Pods-MCSwiftLayoutSample-frameworks.sh\"\n"; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PinLayoutSample/Pods-PinLayoutSample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; CCCCC7EE5AE16BA960D7DB4F /* [CP] Copy Pods Resources */ = { @@ -472,7 +472,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MCSwiftLayoutSample/Pods-MCSwiftLayoutSample-resources.sh\"\n"; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-PinLayoutSample/Pods-PinLayoutSample-resources.sh\"\n"; showEnvVarsInLog = 0; }; DDE1EE639E8C959FEBC41FDC /* [CP] Check Pods Manifest.lock */ = { @@ -487,7 +487,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; + shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ @@ -530,7 +530,7 @@ /* Begin PBXTargetDependency section */ 2439CC2A1E6658C3003326FB /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = MCSwiftLayout; + name = PinLayout; targetProxy = 2439CC291E6658C3003326FB /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -643,14 +643,14 @@ }; 249EFE681E64FAFE00165E39 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F1ACB0EACBD84B57B50D472D /* Pods-MCSwiftLayoutSample.debug.xcconfig */; + baseConfigurationReference = F1ACB0EACBD84B57B50D472D /* Pods-PinLayoutSample.debug.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = 4Q596JWQC5; - INFOPLIST_FILE = "MCSwiftLayoutSample/Supporting Files/Info.plist"; + INFOPLIST_FILE = "PinLayoutSample/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayoutSample; + PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutSample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; }; @@ -658,14 +658,14 @@ }; 249EFE691E64FAFE00165E39 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F121E291CADD796B007C04BB /* Pods-MCSwiftLayoutSample.release.xcconfig */; + baseConfigurationReference = F121E291CADD796B007C04BB /* Pods-PinLayoutSample.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = 4Q596JWQC5; - INFOPLIST_FILE = "MCSwiftLayoutSample/Supporting Files/Info.plist"; + INFOPLIST_FILE = "PinLayoutSample/Supporting Files/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayoutSample; + PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutSample; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; }; @@ -674,7 +674,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 249EFE3A1E64FAFE00165E39 /* Build configuration list for PBXProject "MCSwiftLayoutSample" */ = { + 249EFE3A1E64FAFE00165E39 /* Build configuration list for PBXProject "PinLayoutSample" */ = { isa = XCConfigurationList; buildConfigurations = ( 249EFE651E64FAFE00165E39 /* Debug */, @@ -683,7 +683,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 249EFE671E64FAFE00165E39 /* Build configuration list for PBXNativeTarget "MCSwiftLayoutSample" */ = { + 249EFE671E64FAFE00165E39 /* Build configuration list for PBXNativeTarget "PinLayoutSample" */ = { isa = XCConfigurationList; buildConfigurations = ( 249EFE681E64FAFE00165E39 /* Debug */, diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/AppDelegate.swift b/MCSwiftLayoutSample/PinLayoutSample/AppDelegate.swift similarity index 93% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/AppDelegate.swift rename to MCSwiftLayoutSample/PinLayoutSample/AppDelegate.swift index b1deee38..c429ab7e 100644 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample/AppDelegate.swift +++ b/MCSwiftLayoutSample/PinLayoutSample/AppDelegate.swift @@ -1,13 +1,13 @@ // // AppDelegate.swift -// MCSwiftLayoutSample +// PinLayoutSample // // Created by DION, Luc (MTL) on 2017-02-27. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. // import UIKit -import MCSwiftLayout +import PinLayout @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/MCSwiftLayoutSample/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json rename to MCSwiftLayoutSample/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/Base.lproj/LaunchScreen.storyboard b/MCSwiftLayoutSample/PinLayoutSample/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/Base.lproj/LaunchScreen.storyboard rename to MCSwiftLayoutSample/PinLayoutSample/Base.lproj/LaunchScreen.storyboard diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/Domain/Expect.swift b/MCSwiftLayoutSample/PinLayoutSample/Domain/Expect.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/Domain/Expect.swift rename to MCSwiftLayoutSample/PinLayoutSample/Domain/Expect.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json b/MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json rename to MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard b/MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard rename to MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/Supporting Files/Info.plist b/MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Info.plist similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/Supporting Files/Info.plist rename to MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Info.plist diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Common/BasicView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Common/BasicView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Common/BasicView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Common/BasicView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Main/MenuView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Main/MenuView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Main/MenuViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Main/MenuViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift similarity index 99% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift index 7d902992..48f5291e 100644 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift +++ b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift @@ -6,7 +6,7 @@ // Copyright (c) 2017 Mirego. All rights reserved. // import UIKit -import MCSwiftLayout +import PinLayout class BothEdgesSnappedView: UIView { private let contentScrollView = UIScrollView() diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift similarity index 99% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift index 42b3bf9e..aab79245 100644 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift +++ b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift @@ -6,7 +6,7 @@ // Copyright (c) 2017 Mirego. All rights reserved. // import UIKit -import MCSwiftLayout +import PinLayout class MarginsAndInsetsView: UIView { private let contentScrollView = UIScrollView() diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/RelativeView/RelativeView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift similarity index 99% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/RelativeView/RelativeView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift index 3f4fb6ef..45a9f6e1 100644 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/RelativeView/RelativeView.swift +++ b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift @@ -6,6 +6,7 @@ // Copyright (c) 2017 Mirego. All rights reserved. // import UIKit +import PinLayout class RelativeView: UIView { fileprivate let belowNavBarView = BasicView(text: "Below navbar", color: UIColor.lightGray) diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift similarity index 99% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift index d05cb15f..68f7a932 100644 --- a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift +++ b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift @@ -6,6 +6,7 @@ // Copyright (c) 2017 Mirego. All rights reserved. // import UIKit +import PinLayout class ViewExtensionsPositionningView: UIView { private let centerView = UIView() diff --git a/MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift b/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift similarity index 100% rename from MCSwiftLayoutSample/MCSwiftLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift rename to MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift diff --git a/MCSwiftLayoutSample/Podfile b/MCSwiftLayoutSample/Podfile index 543d49a6..32e15344 100644 --- a/MCSwiftLayoutSample/Podfile +++ b/MCSwiftLayoutSample/Podfile @@ -1,9 +1,9 @@ use_frameworks! -workspace 'MCSwiftLayoutSample.xcworkspace' +workspace 'PinLayoutSample.xcworkspace' -target 'MCSwiftLayoutSample' do - project 'MCSwiftLayoutSample.xcodeproj' +target 'PinLayoutSample' do + project 'PinLayoutSample.xcodeproj' #pod 'YogaKit', '~> 1.1' # Debug only @@ -11,8 +11,8 @@ target 'MCSwiftLayoutSample' do pod 'SwiftLint' end -#target 'MCSwiftLayoutTests' do -# project '../MCSwiftLayout.xcodeproj' +#target 'PinLayoutTests' do +# project '../PinLayout.xcodeproj' # pod 'Quick' # pod 'Nimble' #end diff --git a/MCSwiftLayoutSample/Podfile.lock b/MCSwiftLayoutSample/Podfile.lock index f68d7417..ac6980b6 100644 --- a/MCSwiftLayoutSample/Podfile.lock +++ b/MCSwiftLayoutSample/Podfile.lock @@ -10,6 +10,6 @@ SPEC CHECKSUMS: Reveal-SDK: 564657bc66c93d2718b1c0121cdebe99d354ddab SwiftLint: b8b683208cc09640898f16318a7a452274e91f61 -PODFILE CHECKSUM: a519712d8423f43c5e84c3689639b0c066b8d044 +PODFILE CHECKSUM: 59a9a3ad8ae4f0bb64a6dadf661a354de61b0d83 -COCOAPODS: 1.0.1 +COCOAPODS: 1.1.1 diff --git a/PinLayout.xcodeproj/project.pbxproj b/PinLayout.xcodeproj/project.pbxproj index 117c64a1..30eeb49f 100644 --- a/PinLayout.xcodeproj/project.pbxproj +++ b/PinLayout.xcodeproj/project.pbxproj @@ -20,7 +20,7 @@ 2482908C1E78CFFC00667D08 /* RelativePositionSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */; }; 249EFE841E64FB4C00165E39 /* PinLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */; }; 249EFE891E64FB4C00165E39 /* PinLayoutTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 249EFE881E64FB4C00165E39 /* PinLayoutTests.swift */; }; - 249EFE8B1E64FB4C00165E39 /* MCSwiftLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 249EFE8B1E64FB4C00165E39 /* PinLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 249EFE7D1E64FB4C00165E39 /* PinLayout.h */; settings = {ATTRIBUTES = (Public, ); }; }; DF11A3711E833F03008B33E5 /* Types.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF11A3701E833F03008B33E5 /* Types.swift */; }; DF11A3781E834B32008B33E5 /* UIView+PinLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF11A3771E834B32008B33E5 /* UIView+PinLayout.swift */; }; DF11A37A1E834B3F008B33E5 /* Coordinates.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF11A3791E834B3F008B33E5 /* Coordinates.swift */; }; @@ -34,7 +34,7 @@ containerPortal = 249EFE711E64FB4C00165E39 /* Project object */; proxyType = 1; remoteGlobalIDString = 249EFE791E64FB4C00165E39; - remoteInfo = MCSwiftLayout; + remoteInfo = PinLayout; }; /* End PBXContainerItemProxy section */ @@ -63,7 +63,7 @@ 246D36471E6C46F50050F202 /* PinPointCoordinatesSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PinPointCoordinatesSpec.swift; sourceTree = ""; }; 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RelativePositionSpec.swift; sourceTree = ""; }; 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PinLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MCSwiftLayout.h; sourceTree = ""; }; + 249EFE7D1E64FB4C00165E39 /* PinLayout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PinLayout.h; sourceTree = ""; }; 249EFE7E1E64FB4C00165E39 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 249EFE831E64FB4C00165E39 /* PinLayoutTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PinLayoutTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 249EFE881E64FB4C00165E39 /* PinLayoutTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PinLayoutTests.swift; sourceTree = ""; }; @@ -150,7 +150,6 @@ 2469C5031E75DB7600073BEE /* RectNimbleMatcher.swift */, 2482908B1E78CFFC00667D08 /* RelativePositionSpec.swift */, ); - name = PinLayoutTests; path = PinLayoutTests; sourceTree = ""; }; @@ -158,7 +157,7 @@ isa = PBXGroup; children = ( 249EFE7E1E64FB4C00165E39 /* Info.plist */, - 249EFE7D1E64FB4C00165E39 /* MCSwiftLayout.h */, + 249EFE7D1E64FB4C00165E39 /* PinLayout.h */, ); path = "Supporting Files"; sourceTree = ""; @@ -186,7 +185,7 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 249EFE8B1E64FB4C00165E39 /* MCSwiftLayout.h in Headers */, + 249EFE8B1E64FB4C00165E39 /* PinLayout.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -208,7 +207,7 @@ dependencies = ( ); name = PinLayout; - productName = MCSwiftLayout; + productName = PinLayout; productReference = 249EFE7A1E64FB4C00165E39 /* PinLayout.framework */; productType = "com.apple.product-type.framework"; }; @@ -227,7 +226,7 @@ 249EFE861E64FB4C00165E39 /* PBXTargetDependency */, ); name = PinLayoutTests; - productName = MCSwiftLayoutTests; + productName = PinLayoutTests; productReference = 249EFE831E64FB4C00165E39 /* PinLayoutTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; @@ -498,7 +497,7 @@ ); INFOPLIST_FILE = PinLayoutTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayoutTests; + PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; }; @@ -515,7 +514,7 @@ ); INFOPLIST_FILE = PinLayoutTests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.mirego.MCSwiftLayoutTests; + PRODUCT_BUNDLE_IDENTIFIER = com.mirego.PinLayoutTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; }; diff --git a/Supporting Files/MCSwiftLayout.h b/Supporting Files/PinLayout.h similarity index 85% rename from Supporting Files/MCSwiftLayout.h rename to Supporting Files/PinLayout.h index deda20c1..c0606801 100644 --- a/Supporting Files/MCSwiftLayout.h +++ b/Supporting Files/PinLayout.h @@ -14,6 +14,6 @@ FOUNDATION_EXPORT double PinLayoutVersionNumber; //! Project version string for PinLayout. FOUNDATION_EXPORT const unsigned char PinLayoutVersionString[]; -// In this header, you should import all the public headers of your framework using statements like #import +// In this header, you should import all the public headers of your framework using statements like #import From 72177701cbbc42a634d3dbb1713ea1ecea58653e Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 20:32:52 -0400 Subject: [PATCH 6/7] Part6 --- .codeclimate.yml | 2 +- .gitignore | 2 +- .tailor.yml | 2 +- {MCSwiftLayoutSample => PinLayoutSample}/.ruby-version | 0 {MCSwiftLayoutSample => PinLayoutSample}/.swiftlint.yml | 0 {MCSwiftLayoutSample => PinLayoutSample}/Gemfile | 0 {MCSwiftLayoutSample => PinLayoutSample}/Gemfile.lock | 0 .../PinLayoutSample.xcodeproj/project.pbxproj | 0 .../PinLayoutSample/AppDelegate.swift | 0 .../Assets.xcassets/AppIcon.appiconset/Contents.json | 0 .../PinLayoutSample/Base.lproj/LaunchScreen.storyboard | 0 .../PinLayoutSample/Domain/Expect.swift | 2 +- .../Assets.xcassets/AppIcon.appiconset/Contents.json | 0 .../Supporting Files/Base.lproj/LaunchScreen.storyboard | 0 .../PinLayoutSample/Supporting Files/Info.plist | 0 .../PinLayoutSample/UI/Common/BasicView.swift | 0 .../PinLayoutSample/UI/Main/MenuView.swift | 0 .../PinLayoutSample/UI/Main/MenuViewController.swift | 0 .../UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift | 0 .../Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift | 0 .../UI/Tests/ChainedLayoutView/ChainedLayoutView.swift | 0 .../Tests/ChainedLayoutView/ChainedLayoutViewController.swift | 0 .../UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift | 0 .../Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift | 0 .../MarginsAndPaddingsLeftRightView.swift | 0 .../MarginsAndPaddingsLeftRightViewController.swift | 0 .../MarginsAndPaddingsLeftWidthView.swift | 0 .../MarginsAndPaddingsLeftWidthViewController.swift | 0 .../UI/Tests/MultiRelativeView/MultiRelativeView.swift | 0 .../Tests/MultiRelativeView/MultiRelativeViewController.swift | 0 .../UI/Tests/PinScrolling/PinScrollingView.swift | 2 +- .../UI/Tests/PinScrolling/PinScrollingViewController.swift | 2 +- .../PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift | 0 .../UI/Tests/RelativeView/RelativeViewController.swift | 0 .../UI/Tests/ValidateConflictsView/ValidateConflictsView.swift | 0 .../ValidateConflictsView/ValidateConflictsViewController.swift | 0 .../ViewExtensionsPositionningView.swift | 0 .../ViewExtensionsPositionningViewController.swift | 0 {MCSwiftLayoutSample => PinLayoutSample}/Podfile | 0 {MCSwiftLayoutSample => PinLayoutSample}/Podfile.lock | 0 40 files changed, 6 insertions(+), 6 deletions(-) rename {MCSwiftLayoutSample => PinLayoutSample}/.ruby-version (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/.swiftlint.yml (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/Gemfile (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/Gemfile.lock (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample.xcodeproj/project.pbxproj (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/AppDelegate.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/Base.lproj/LaunchScreen.storyboard (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/Domain/Expect.swift (92%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/Supporting Files/Info.plist (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Common/BasicView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Main/MenuView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Main/MenuViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift (98%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift (95%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/Podfile (100%) rename {MCSwiftLayoutSample => PinLayoutSample}/Podfile.lock (100%) diff --git a/.codeclimate.yml b/.codeclimate.yml index 380861b7..b7fd1c11 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -8,7 +8,7 @@ ratings: exclude_paths: - PinLayoutTests - - MCSwiftLayoutSample + - PinLayoutSample - Carthage - Source/Pods - data diff --git a/.gitignore b/.gitignore index d8a909ce..1a157745 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ build/ DerivedData/ Pods/ Carthage/ -MCSwiftLayoutSample/Pods +PinLayoutSample/Pods xcuserdata *.xcworkspace data/ \ No newline at end of file diff --git a/.tailor.yml b/.tailor.yml index d827d064..25a33ed7 100644 --- a/.tailor.yml +++ b/.tailor.yml @@ -3,7 +3,7 @@ include: exclude: - PinLayoutTests - - MCSwiftLayoutSample + - PinLayoutSample - Carthage - Source/Pods - data diff --git a/MCSwiftLayoutSample/.ruby-version b/PinLayoutSample/.ruby-version similarity index 100% rename from MCSwiftLayoutSample/.ruby-version rename to PinLayoutSample/.ruby-version diff --git a/MCSwiftLayoutSample/.swiftlint.yml b/PinLayoutSample/.swiftlint.yml similarity index 100% rename from MCSwiftLayoutSample/.swiftlint.yml rename to PinLayoutSample/.swiftlint.yml diff --git a/MCSwiftLayoutSample/Gemfile b/PinLayoutSample/Gemfile similarity index 100% rename from MCSwiftLayoutSample/Gemfile rename to PinLayoutSample/Gemfile diff --git a/MCSwiftLayoutSample/Gemfile.lock b/PinLayoutSample/Gemfile.lock similarity index 100% rename from MCSwiftLayoutSample/Gemfile.lock rename to PinLayoutSample/Gemfile.lock diff --git a/MCSwiftLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj b/PinLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj rename to PinLayoutSample/PinLayoutSample.xcodeproj/project.pbxproj diff --git a/MCSwiftLayoutSample/PinLayoutSample/AppDelegate.swift b/PinLayoutSample/PinLayoutSample/AppDelegate.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/AppDelegate.swift rename to PinLayoutSample/PinLayoutSample/AppDelegate.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/PinLayoutSample/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json rename to PinLayoutSample/PinLayoutSample/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/MCSwiftLayoutSample/PinLayoutSample/Base.lproj/LaunchScreen.storyboard b/PinLayoutSample/PinLayoutSample/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/Base.lproj/LaunchScreen.storyboard rename to PinLayoutSample/PinLayoutSample/Base.lproj/LaunchScreen.storyboard diff --git a/MCSwiftLayoutSample/PinLayoutSample/Domain/Expect.swift b/PinLayoutSample/PinLayoutSample/Domain/Expect.swift similarity index 92% rename from MCSwiftLayoutSample/PinLayoutSample/Domain/Expect.swift rename to PinLayoutSample/PinLayoutSample/Domain/Expect.swift index 0a9dabf4..3f6775c4 100644 --- a/MCSwiftLayoutSample/PinLayoutSample/Domain/Expect.swift +++ b/PinLayoutSample/PinLayoutSample/Domain/Expect.swift @@ -1,6 +1,6 @@ // // Expect.swift -// MCSwiftLayoutSample +// PinLayoutSample // // Created by DION, Luc (MTL) on 2017-03-02. // Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json b/PinLayoutSample/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json rename to PinLayoutSample/PinLayoutSample/Supporting Files/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard b/PinLayoutSample/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard rename to PinLayoutSample/PinLayoutSample/Supporting Files/Base.lproj/LaunchScreen.storyboard diff --git a/MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Info.plist b/PinLayoutSample/PinLayoutSample/Supporting Files/Info.plist similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/Supporting Files/Info.plist rename to PinLayoutSample/PinLayoutSample/Supporting Files/Info.plist diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Common/BasicView.swift b/PinLayoutSample/PinLayoutSample/UI/Common/BasicView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Common/BasicView.swift rename to PinLayoutSample/PinLayoutSample/UI/Common/BasicView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuView.swift b/PinLayoutSample/PinLayoutSample/UI/Main/MenuView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuView.swift rename to PinLayoutSample/PinLayoutSample/UI/Main/MenuView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift similarity index 98% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift index 365e64cf..bb564db4 100644 --- a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift @@ -1,6 +1,6 @@ // // PinScrollingView.swift -// MCSwiftLayoutSample +// PinLayoutSample // // Created by Luc Dion on 2017-03-23. // Copyright (c) 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift similarity index 95% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift index 057817d6..7366b7bd 100644 --- a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift @@ -1,6 +1,6 @@ // // PinScrollingViewController.swift -// MCSwiftLayoutSample +// PinLayoutSample // // Created by Luc Dion on 2017-03-23. // Copyright (c) 2017 mcswiftlayyout.mirego.com. All rights reserved. diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift diff --git a/MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift similarity index 100% rename from MCSwiftLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift rename to PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift diff --git a/MCSwiftLayoutSample/Podfile b/PinLayoutSample/Podfile similarity index 100% rename from MCSwiftLayoutSample/Podfile rename to PinLayoutSample/Podfile diff --git a/MCSwiftLayoutSample/Podfile.lock b/PinLayoutSample/Podfile.lock similarity index 100% rename from MCSwiftLayoutSample/Podfile.lock rename to PinLayoutSample/Podfile.lock From d69aedaad7bfbac8ed8aeea4cc550741e4b6149f Mon Sep 17 00:00:00 2001 From: Luc Dion Date: Tue, 28 Mar 2017 20:39:09 -0400 Subject: [PATCH 7/7] Renamed completely the project to PinLayout * Xcodeproj * Files * ... --- PinLayout.xcodeproj/project.pbxproj | 10 ++++++- PinLayout/Extensions/UIView+PinLayout.swift | 27 ++++++++++++++--- PinLayout/Helpers/Coordinates.swift | 27 ++++++++++++++--- PinLayout/PinLayout.swift | 27 ++++++++++++++--- PinLayout/PinLayoutImpl.swift | 28 +++++++++++++++--- PinLayout/Types.swift | 27 ++++++++++++++--- .../PinLayoutSample/AppDelegate.swift | 27 ++++++++++++++--- .../PinLayoutSample/Domain/Expect.swift | 27 ++++++++++++++--- .../PinLayoutSample/UI/Common/BasicView.swift | 28 +++++++++++++++--- .../PinLayoutSample/UI/Main/MenuView.swift | 28 +++++++++++++++--- .../UI/Main/MenuViewController.swift | 28 +++++++++++++++--- .../BothEdgesSnappedView.swift | 28 +++++++++++++++--- .../BothEdgesSnappedViewController.swift | 28 +++++++++++++++--- .../ChainedLayoutView/ChainedLayoutView.swift | 28 +++++++++++++++--- .../ChainedLayoutViewController.swift | 28 +++++++++++++++--- .../MarginsAndInsetsView.swift | 28 +++++++++++++++--- .../MarginsAndInsetsViewController.swift | 28 +++++++++++++++--- .../MarginsAndPaddingsLeftRightView.swift | 28 +++++++++++++++--- ...nsAndPaddingsLeftRightViewController.swift | 28 +++++++++++++++--- .../MarginsAndPaddingsLeftWidthView.swift | 28 +++++++++++++++--- ...nsAndPaddingsLeftWidthViewController.swift | 28 +++++++++++++++--- .../MultiRelativeView/MultiRelativeView.swift | 28 +++++++++++++++--- .../MultiRelativeViewController.swift | 28 +++++++++++++++--- .../Tests/PinScrolling/PinScrollingView.swift | 28 +++++++++++++++--- .../PinScrollingViewController.swift | 28 +++++++++++++++--- .../UI/Tests/RelativeView/RelativeView.swift | 28 +++++++++++++++--- .../RelativeView/RelativeViewController.swift | 28 +++++++++++++++--- .../ValidateConflictsView.swift | 28 +++++++++++++++--- .../ValidateConflictsViewController.swift | 28 +++++++++++++++--- .../ViewExtensionsPositionningView.swift | 28 +++++++++++++++--- ...ExtensionsPositionningViewController.swift | 29 +++++++++++++++---- PinLayoutTests/AdjustSizeSpec.swift | 28 +++++++++++++++--- PinLayoutTests/BasicView.swift | 28 +++++++++++++++--- PinLayoutTests/MarginsAndInsetsSpec.swift | 28 +++++++++++++++--- PinLayoutTests/PinEdgeCoordinateSpec.swift | 28 +++++++++++++++--- PinLayoutTests/PinLayoutTests.swift | 27 ++++++++++++++--- PinLayoutTests/PinPointCoordinatesSpec.swift | 28 +++++++++++++++--- PinLayoutTests/RectNimbleMatcher.swift | 28 +++++++++++++++--- PinLayoutTests/RelativePositionSpec.swift | 28 +++++++++++++++--- 39 files changed, 914 insertions(+), 154 deletions(-) diff --git a/PinLayout.xcodeproj/project.pbxproj b/PinLayout.xcodeproj/project.pbxproj index 30eeb49f..b22db754 100644 --- a/PinLayout.xcodeproj/project.pbxproj +++ b/PinLayout.xcodeproj/project.pbxproj @@ -129,8 +129,8 @@ isa = PBXGroup; children = ( DFC97CA61E8A8F2C001545D5 /* PinLayout.swift */, - DFC97CA41E8A8EB3001545D5 /* PinLayoutImpl.swift */, DF11A3701E833F03008B33E5 /* Types.swift */, + DFA06B031E8B38B300B6D5E7 /* Impl */, DF11A3751E834194008B33E5 /* Extensions */, DF11A3761E8341A2008B33E5 /* Helpers */, ); @@ -178,6 +178,14 @@ path = Helpers; sourceTree = ""; }; + DFA06B031E8B38B300B6D5E7 /* Impl */ = { + isa = PBXGroup; + children = ( + DFC97CA41E8A8EB3001545D5 /* PinLayoutImpl.swift */, + ); + name = Impl; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ diff --git a/PinLayout/Extensions/UIView+PinLayout.swift b/PinLayout/Extensions/UIView+PinLayout.swift index 6b44de49..e2f32f58 100644 --- a/PinLayout/Extensions/UIView+PinLayout.swift +++ b/PinLayout/Extensions/UIView+PinLayout.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// UIView+PinLayout.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2017-03-22. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import UIKit diff --git a/PinLayout/Helpers/Coordinates.swift b/PinLayout/Helpers/Coordinates.swift index 91e2663e..16000897 100644 --- a/PinLayout/Helpers/Coordinates.swift +++ b/PinLayout/Helpers/Coordinates.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// View.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2017-03-22. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import UIKit diff --git a/PinLayout/PinLayout.swift b/PinLayout/PinLayout.swift index 996d13ec..82fe51e1 100644 --- a/PinLayout/PinLayout.swift +++ b/PinLayout/PinLayout.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinLayout.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2017-03-28. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import UIKit diff --git a/PinLayout/PinLayoutImpl.swift b/PinLayout/PinLayoutImpl.swift index c43abef3..c467d1de 100644 --- a/PinLayout/PinLayoutImpl.swift +++ b/PinLayout/PinLayoutImpl.swift @@ -1,11 +1,31 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinLayout.swift +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-17. -// Copyright © 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // -import UIKit +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +import UIKit /* =============================================== diff --git a/PinLayout/Types.swift b/PinLayout/Types.swift index 816601cd..4b6c858c 100644 --- a/PinLayout/Types.swift +++ b/PinLayout/Types.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// Types.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2017-03-22. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import UIKit diff --git a/PinLayoutSample/PinLayoutSample/AppDelegate.swift b/PinLayoutSample/PinLayoutSample/AppDelegate.swift index c429ab7e..7a53c2fc 100644 --- a/PinLayoutSample/PinLayoutSample/AppDelegate.swift +++ b/PinLayoutSample/PinLayoutSample/AppDelegate.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// AppDelegate.swift -// PinLayoutSample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-27. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import UIKit import PinLayout diff --git a/PinLayoutSample/PinLayoutSample/Domain/Expect.swift b/PinLayoutSample/PinLayoutSample/Domain/Expect.swift index 3f6775c4..f6881020 100644 --- a/PinLayoutSample/PinLayoutSample/Domain/Expect.swift +++ b/PinLayoutSample/PinLayoutSample/Domain/Expect.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// Expect.swift -// PinLayoutSample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-02. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import UIKit diff --git a/PinLayoutSample/PinLayoutSample/UI/Common/BasicView.swift b/PinLayoutSample/PinLayoutSample/UI/Common/BasicView.swift index eb048fc0..551e6376 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Common/BasicView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Common/BasicView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// BasicView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright © 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class BasicView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Main/MenuView.swift b/PinLayoutSample/PinLayoutSample/UI/Main/MenuView.swift index b0b8e0ec..d7b004aa 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Main/MenuView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Main/MenuView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MenuView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2016-09-03. -// Copyright © 2016 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit protocol MenuViewDelegate: class { diff --git a/PinLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift index 31cfbd01..057574cc 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Main/MenuViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MenuViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2016-09-03. -// Copyright © 2016 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit enum Page: Int { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift index 48f5291e..92b23376 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// BothEdgesSnappedView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit import PinLayout diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift index 4fef2825..2c87edf7 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/BothEdgesSnapped/BothEdgesSnappedViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// BothEdgesSnappedViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class BothEdgesSnappedViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift index 5b23cc3c..df89dfb9 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// ChainedLayoutView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-20. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class ChainedLayoutView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift index b1da60a6..51550f04 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/ChainedLayoutView/ChainedLayoutViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// ChainedLayoutViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-20. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class ChainedLayoutViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift index aab79245..21086600 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndInsetsView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit import PinLayout diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift index fa5c9a45..e7152f3c 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndInsets/MarginsAndInsetsViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndInsetsViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MarginsAndInsetsViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift index 155f90d7..8e6cf7d1 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndPaddingsLeftRightView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MarginsAndPaddingsLeftRightView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift index c8392dc6..1bb08547 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftRightView/MarginsAndPaddingsLeftRightViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndPaddingsLeftRightViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MarginsAndPaddingsLeftRightViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift index 4c465807..a667f081 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndPaddingsLeftWidthView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MarginsAndPaddingsLeftWidthView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift index 92bef7d1..57a928d4 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MarginsAndPaddingsLeftWidthView/MarginsAndPaddingsLeftWidthViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndPaddingsLeftWidthViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MarginsAndPaddingsLeftWidthViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift index 35fe88f2..e0448891 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MultiRelativeView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-25. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MultiRelativeView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift index d63d3610..0f4fd07d 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/MultiRelativeView/MultiRelativeViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MultiRelativeViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-25. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class MultiRelativeViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift index bb564db4..6cda97b8 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinScrollingView.swift -// PinLayoutSample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2017-03-23. -// Copyright (c) 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class PinScrollingView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift index 7366b7bd..4e5c198d 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/PinScrolling/PinScrollingViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinScrollingViewController.swift -// PinLayoutSample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by Luc Dion on 2017-03-23. -// Copyright (c) 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class PinScrollingViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift index 45a9f6e1..a54d67d4 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// RelativeView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-22. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit import PinLayout diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift index 2cccea15..86ea6f3c 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/RelativeView/RelativeViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// RelativeViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-22. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class RelativeViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift index 8a4b6f11..5b2ff8bd 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// ValidateConflictsView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-23. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class ValidateConflictsView: UIView { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift index 8c34d52d..5fe2d16c 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/ValidateConflictsView/ValidateConflictsViewController.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// ValidateConflictsViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-23. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class ValidateConflictsViewController: UIViewController { diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift index 68f7a932..0432a890 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// ViewExtensionsPositionningView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-17. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit import PinLayout diff --git a/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift b/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift index 573ffac0..9c095dff 100644 --- a/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift +++ b/PinLayoutSample/PinLayoutSample/UI/Tests/ViewExtensionsPositionningView/ViewExtensionsPositionningViewController.swift @@ -1,11 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// ViewExtensionsPositionningViewController.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-17. -// Copyright (c) 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // -import UIKit +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class ViewExtensionsPositionningViewController: UIViewController { diff --git a/PinLayoutTests/AdjustSizeSpec.swift b/PinLayoutTests/AdjustSizeSpec.swift index 80c82272..b2678c60 100644 --- a/PinLayoutTests/AdjustSizeSpec.swift +++ b/PinLayoutTests/AdjustSizeSpec.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// AdjustSizeSpec.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-05. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import Quick import Nimble import PinLayout diff --git a/PinLayoutTests/BasicView.swift b/PinLayoutTests/BasicView.swift index eb048fc0..551e6376 100644 --- a/PinLayoutTests/BasicView.swift +++ b/PinLayoutTests/BasicView.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// BasicView.swift -// MCLayoutExample +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-21. -// Copyright © 2017 Mirego. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import UIKit class BasicView: UIView { diff --git a/PinLayoutTests/MarginsAndInsetsSpec.swift b/PinLayoutTests/MarginsAndInsetsSpec.swift index 8b80d1a7..71662a6c 100644 --- a/PinLayoutTests/MarginsAndInsetsSpec.swift +++ b/PinLayoutTests/MarginsAndInsetsSpec.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// MarginsAndInsetsSpec.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-05. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import Quick import Nimble import PinLayout diff --git a/PinLayoutTests/PinEdgeCoordinateSpec.swift b/PinLayoutTests/PinEdgeCoordinateSpec.swift index 9b81213c..07f5ba01 100644 --- a/PinLayoutTests/PinEdgeCoordinateSpec.swift +++ b/PinLayoutTests/PinEdgeCoordinateSpec.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinEdgeCoordinateSpec.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-05. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import Quick import Nimble import PinLayout diff --git a/PinLayoutTests/PinLayoutTests.swift b/PinLayoutTests/PinLayoutTests.swift index 0968f7f2..0562bd34 100644 --- a/PinLayoutTests/PinLayoutTests.swift +++ b/PinLayoutTests/PinLayoutTests.swift @@ -1,10 +1,29 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinLayout.swift -// PinLayoutTests +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-02-27. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. import XCTest @testable import PinLayout diff --git a/PinLayoutTests/PinPointCoordinatesSpec.swift b/PinLayoutTests/PinPointCoordinatesSpec.swift index dee3e9a6..2ea228ec 100644 --- a/PinLayoutTests/PinPointCoordinatesSpec.swift +++ b/PinLayoutTests/PinPointCoordinatesSpec.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// PinPointCoordinatesSpec.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-05. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import Quick import Nimble import PinLayout diff --git a/PinLayoutTests/RectNimbleMatcher.swift b/PinLayoutTests/RectNimbleMatcher.swift index 9fb2ada6..76b49b5c 100644 --- a/PinLayoutTests/RectNimbleMatcher.swift +++ b/PinLayoutTests/RectNimbleMatcher.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// RectNimbleMatcher.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-12. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import Nimble import UIKit diff --git a/PinLayoutTests/RelativePositionSpec.swift b/PinLayoutTests/RelativePositionSpec.swift index 784f57d4..fda79a6e 100644 --- a/PinLayoutTests/RelativePositionSpec.swift +++ b/PinLayoutTests/RelativePositionSpec.swift @@ -1,10 +1,30 @@ +// Copyright (c) 2017, Mirego +// All rights reserved. // -// RelativePositionSpec.swift -// PinLayout +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: // -// Created by DION, Luc (MTL) on 2017-03-05. -// Copyright © 2017 mcswiftlayyout.mirego.com. All rights reserved. +// - Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// - Neither the name of the Mirego nor the names of its contributors may +// be used to endorse or promote products derived from this software without +// specific prior written permission. // +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + import Quick import Nimble import PinLayout