From 4449e2a7a6711400c01e1c8309ccf98e8bf9f2f0 Mon Sep 17 00:00:00 2001 From: Ilia Gutu Date: Wed, 21 Sep 2022 21:56:41 +0200 Subject: [PATCH 1/3] Add SPM support --- Package.swift | 28 ++++ .../VanillaConstraints}/Info.plist | 0 .../Constrainable+NSLayoutDimension.swift | 0 .../Constrainable+NSLayoutXAxisAnchor.swift | 0 .../Constrainable+NSLayoutYAxisAnchor.swift | 0 .../Sources}/Constrainable+UIView.swift | 0 .../Sources}/Constrainable.swift | 2 +- .../Sources}/ConstraintRelation.swift | 0 .../Sources}/Extensions+Constrainable.swift | 0 .../Extensions+NSLayoutConstraint.swift | 0 .../Extensions+NSLayoutDimension.swift | 0 .../Extensions+NSLayoutXAxisAnchor.swift | 0 .../Extensions+NSLayoutYAxisAnchor.swift | 0 .../Sources}/Extensions+UIView.swift | 0 .../VanillaConstraintsTests}/Info.plist | 0 .../VanillaConstraintsTests.swift | 0 VanillaConstraints.podspec | 4 +- VanillaConstraints.xcodeproj/project.pbxproj | 148 +++++++++--------- 18 files changed, 106 insertions(+), 76 deletions(-) create mode 100644 Package.swift rename {VanillaConstraints => Sources/VanillaConstraints}/Info.plist (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Constrainable+NSLayoutDimension.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Constrainable+NSLayoutXAxisAnchor.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Constrainable+NSLayoutYAxisAnchor.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Constrainable+UIView.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Constrainable.swift (85%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/ConstraintRelation.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Extensions+Constrainable.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Extensions+NSLayoutConstraint.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Extensions+NSLayoutDimension.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Extensions+NSLayoutXAxisAnchor.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Extensions+NSLayoutYAxisAnchor.swift (100%) rename {VanillaConstraints/Source => Sources/VanillaConstraints/Sources}/Extensions+UIView.swift (100%) rename {VanillaConstraintsTests => Tests/VanillaConstraintsTests}/Info.plist (100%) rename {VanillaConstraintsTests => Tests/VanillaConstraintsTests}/VanillaConstraintsTests.swift (100%) diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..009abdc --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.6 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "VanillaConstraints", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "VanillaConstraints", + targets: ["VanillaConstraints"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "VanillaConstraints", + dependencies: []), + .testTarget( + name: "VanillaConstraintsTests", + dependencies: ["VanillaConstraints"]), + ] +) diff --git a/VanillaConstraints/Info.plist b/Sources/VanillaConstraints/Info.plist similarity index 100% rename from VanillaConstraints/Info.plist rename to Sources/VanillaConstraints/Info.plist diff --git a/VanillaConstraints/Source/Constrainable+NSLayoutDimension.swift b/Sources/VanillaConstraints/Sources/Constrainable+NSLayoutDimension.swift similarity index 100% rename from VanillaConstraints/Source/Constrainable+NSLayoutDimension.swift rename to Sources/VanillaConstraints/Sources/Constrainable+NSLayoutDimension.swift diff --git a/VanillaConstraints/Source/Constrainable+NSLayoutXAxisAnchor.swift b/Sources/VanillaConstraints/Sources/Constrainable+NSLayoutXAxisAnchor.swift similarity index 100% rename from VanillaConstraints/Source/Constrainable+NSLayoutXAxisAnchor.swift rename to Sources/VanillaConstraints/Sources/Constrainable+NSLayoutXAxisAnchor.swift diff --git a/VanillaConstraints/Source/Constrainable+NSLayoutYAxisAnchor.swift b/Sources/VanillaConstraints/Sources/Constrainable+NSLayoutYAxisAnchor.swift similarity index 100% rename from VanillaConstraints/Source/Constrainable+NSLayoutYAxisAnchor.swift rename to Sources/VanillaConstraints/Sources/Constrainable+NSLayoutYAxisAnchor.swift diff --git a/VanillaConstraints/Source/Constrainable+UIView.swift b/Sources/VanillaConstraints/Sources/Constrainable+UIView.swift similarity index 100% rename from VanillaConstraints/Source/Constrainable+UIView.swift rename to Sources/VanillaConstraints/Sources/Constrainable+UIView.swift diff --git a/VanillaConstraints/Source/Constrainable.swift b/Sources/VanillaConstraints/Sources/Constrainable.swift similarity index 85% rename from VanillaConstraints/Source/Constrainable.swift rename to Sources/VanillaConstraints/Sources/Constrainable.swift index 1b46792..99a012e 100644 --- a/VanillaConstraints/Source/Constrainable.swift +++ b/Sources/VanillaConstraints/Sources/Constrainable.swift @@ -9,7 +9,7 @@ import Foundation import UIKit -public protocol Constrainable: class { +public protocol Constrainable: AnyObject { var parent: UIView { get } var target: UIView { get } } diff --git a/VanillaConstraints/Source/ConstraintRelation.swift b/Sources/VanillaConstraints/Sources/ConstraintRelation.swift similarity index 100% rename from VanillaConstraints/Source/ConstraintRelation.swift rename to Sources/VanillaConstraints/Sources/ConstraintRelation.swift diff --git a/VanillaConstraints/Source/Extensions+Constrainable.swift b/Sources/VanillaConstraints/Sources/Extensions+Constrainable.swift similarity index 100% rename from VanillaConstraints/Source/Extensions+Constrainable.swift rename to Sources/VanillaConstraints/Sources/Extensions+Constrainable.swift diff --git a/VanillaConstraints/Source/Extensions+NSLayoutConstraint.swift b/Sources/VanillaConstraints/Sources/Extensions+NSLayoutConstraint.swift similarity index 100% rename from VanillaConstraints/Source/Extensions+NSLayoutConstraint.swift rename to Sources/VanillaConstraints/Sources/Extensions+NSLayoutConstraint.swift diff --git a/VanillaConstraints/Source/Extensions+NSLayoutDimension.swift b/Sources/VanillaConstraints/Sources/Extensions+NSLayoutDimension.swift similarity index 100% rename from VanillaConstraints/Source/Extensions+NSLayoutDimension.swift rename to Sources/VanillaConstraints/Sources/Extensions+NSLayoutDimension.swift diff --git a/VanillaConstraints/Source/Extensions+NSLayoutXAxisAnchor.swift b/Sources/VanillaConstraints/Sources/Extensions+NSLayoutXAxisAnchor.swift similarity index 100% rename from VanillaConstraints/Source/Extensions+NSLayoutXAxisAnchor.swift rename to Sources/VanillaConstraints/Sources/Extensions+NSLayoutXAxisAnchor.swift diff --git a/VanillaConstraints/Source/Extensions+NSLayoutYAxisAnchor.swift b/Sources/VanillaConstraints/Sources/Extensions+NSLayoutYAxisAnchor.swift similarity index 100% rename from VanillaConstraints/Source/Extensions+NSLayoutYAxisAnchor.swift rename to Sources/VanillaConstraints/Sources/Extensions+NSLayoutYAxisAnchor.swift diff --git a/VanillaConstraints/Source/Extensions+UIView.swift b/Sources/VanillaConstraints/Sources/Extensions+UIView.swift similarity index 100% rename from VanillaConstraints/Source/Extensions+UIView.swift rename to Sources/VanillaConstraints/Sources/Extensions+UIView.swift diff --git a/VanillaConstraintsTests/Info.plist b/Tests/VanillaConstraintsTests/Info.plist similarity index 100% rename from VanillaConstraintsTests/Info.plist rename to Tests/VanillaConstraintsTests/Info.plist diff --git a/VanillaConstraintsTests/VanillaConstraintsTests.swift b/Tests/VanillaConstraintsTests/VanillaConstraintsTests.swift similarity index 100% rename from VanillaConstraintsTests/VanillaConstraintsTests.swift rename to Tests/VanillaConstraintsTests/VanillaConstraintsTests.swift diff --git a/VanillaConstraints.podspec b/VanillaConstraints.podspec index 4121680..816bc48 100644 --- a/VanillaConstraints.podspec +++ b/VanillaConstraints.podspec @@ -6,9 +6,9 @@ Pod::Spec.new do |spec| spec.authors = { 'Joan Disho' => 'dishojoan@gmail.com' } spec.summary = 'Simplified and chainable AutoLayout NSLayoutConstraints for iOS.' spec.source = { :git => 'https://github.com/jdisho/VanillaConstraints.git', :tag => spec.version } - spec.swift_version = '4.0' + spec.swift_version = '5.6' spec.ios.deployment_target = '9.0' - spec.source_files = 'VanillaConstraints/Source/*.swift' + spec.source_files = 'Sources/VanillaConstraints/**/*.swift' spec.framework = 'Foundation' spec.framework = 'UIKit' end diff --git a/VanillaConstraints.xcodeproj/project.pbxproj b/VanillaConstraints.xcodeproj/project.pbxproj index 84266ed..f33deae 100644 --- a/VanillaConstraints.xcodeproj/project.pbxproj +++ b/VanillaConstraints.xcodeproj/project.pbxproj @@ -7,20 +7,20 @@ objects = { /* Begin PBXBuildFile section */ + 659C8E6C28DBA06C00C3AFF9 /* Extensions+NSLayoutXAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E5F28DBA06C00C3AFF9 /* Extensions+NSLayoutXAxisAnchor.swift */; }; + 659C8E6D28DBA06C00C3AFF9 /* Extensions+Constrainable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6028DBA06C00C3AFF9 /* Extensions+Constrainable.swift */; }; + 659C8E6E28DBA06C00C3AFF9 /* Constrainable+NSLayoutYAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6128DBA06C00C3AFF9 /* Constrainable+NSLayoutYAxisAnchor.swift */; }; + 659C8E6F28DBA06C00C3AFF9 /* Extensions+NSLayoutYAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6228DBA06C00C3AFF9 /* Extensions+NSLayoutYAxisAnchor.swift */; }; + 659C8E7028DBA06C00C3AFF9 /* Constrainable+NSLayoutXAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6328DBA06C00C3AFF9 /* Constrainable+NSLayoutXAxisAnchor.swift */; }; + 659C8E7128DBA06C00C3AFF9 /* Extensions+NSLayoutConstraint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6428DBA06C00C3AFF9 /* Extensions+NSLayoutConstraint.swift */; }; + 659C8E7228DBA06C00C3AFF9 /* Extensions+NSLayoutDimension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6528DBA06C00C3AFF9 /* Extensions+NSLayoutDimension.swift */; }; + 659C8E7328DBA06C00C3AFF9 /* Extensions+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6628DBA06C00C3AFF9 /* Extensions+UIView.swift */; }; + 659C8E7428DBA06C00C3AFF9 /* Constrainable+NSLayoutDimension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6728DBA06C00C3AFF9 /* Constrainable+NSLayoutDimension.swift */; }; + 659C8E7528DBA06C00C3AFF9 /* Constrainable+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6828DBA06C00C3AFF9 /* Constrainable+UIView.swift */; }; + 659C8E7628DBA06C00C3AFF9 /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6928DBA06C00C3AFF9 /* ConstraintRelation.swift */; }; + 659C8E7728DBA06C00C3AFF9 /* Constrainable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E6A28DBA06C00C3AFF9 /* Constrainable.swift */; }; + 659C8E7E28DBA09900C3AFF9 /* VanillaConstraintsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 659C8E7A28DBA08300C3AFF9 /* VanillaConstraintsTests.swift */; }; C056F1002121A1AD007B6791 /* VanillaConstraints.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C056F0F62121A1AD007B6791 /* VanillaConstraints.framework */; }; - C056F1052121A1AD007B6791 /* VanillaConstraintsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1042121A1AD007B6791 /* VanillaConstraintsTests.swift */; }; - C056F1122121A260007B6791 /* Constrainable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1112121A260007B6791 /* Constrainable.swift */; }; - C056F1142121A337007B6791 /* Extensions+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1132121A337007B6791 /* Extensions+UIView.swift */; }; - C056F1182121A3D3007B6791 /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1172121A3D3007B6791 /* ConstraintRelation.swift */; }; - C056F11A2121A4B4007B6791 /* Constrainable+UIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1192121A4B4007B6791 /* Constrainable+UIView.swift */; }; - C056F11C2121A4FA007B6791 /* Extensions+NSLayoutXAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F11B2121A4FA007B6791 /* Extensions+NSLayoutXAxisAnchor.swift */; }; - C056F11F2121A52E007B6791 /* Extensions+NSLayoutYAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F11E2121A52E007B6791 /* Extensions+NSLayoutYAxisAnchor.swift */; }; - C056F1212121A553007B6791 /* Extensions+NSLayoutConstraint.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1202121A553007B6791 /* Extensions+NSLayoutConstraint.swift */; }; - C056F1232121A5B4007B6791 /* Extensions+NSLayoutDimension.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1222121A5B4007B6791 /* Extensions+NSLayoutDimension.swift */; }; - C056F1262121A695007B6791 /* Extensions+Constrainable.swift in Sources */ = {isa = PBXBuildFile; fileRef = C056F1252121A695007B6791 /* Extensions+Constrainable.swift */; }; - DCAED61C21A1C1BC007BDE95 /* Constrainable+NSLayoutYAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCAED61B21A1C1BC007BDE95 /* Constrainable+NSLayoutYAxisAnchor.swift */; }; - DCAED61E21A1C242007BDE95 /* Constrainable+NSLayoutXAxisAnchor.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCAED61D21A1C242007BDE95 /* Constrainable+NSLayoutXAxisAnchor.swift */; }; - DCAED62021A1C2F9007BDE95 /* Constrainable+NSLayoutDimension.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCAED61F21A1C2F9007BDE95 /* Constrainable+NSLayoutDimension.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -34,23 +34,23 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ + 659C8E5F28DBA06C00C3AFF9 /* Extensions+NSLayoutXAxisAnchor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutXAxisAnchor.swift"; sourceTree = ""; }; + 659C8E6028DBA06C00C3AFF9 /* Extensions+Constrainable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Extensions+Constrainable.swift"; sourceTree = ""; }; + 659C8E6128DBA06C00C3AFF9 /* Constrainable+NSLayoutYAxisAnchor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Constrainable+NSLayoutYAxisAnchor.swift"; sourceTree = ""; }; + 659C8E6228DBA06C00C3AFF9 /* Extensions+NSLayoutYAxisAnchor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutYAxisAnchor.swift"; sourceTree = ""; }; + 659C8E6328DBA06C00C3AFF9 /* Constrainable+NSLayoutXAxisAnchor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Constrainable+NSLayoutXAxisAnchor.swift"; sourceTree = ""; }; + 659C8E6428DBA06C00C3AFF9 /* Extensions+NSLayoutConstraint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutConstraint.swift"; sourceTree = ""; }; + 659C8E6528DBA06C00C3AFF9 /* Extensions+NSLayoutDimension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutDimension.swift"; sourceTree = ""; }; + 659C8E6628DBA06C00C3AFF9 /* Extensions+UIView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Extensions+UIView.swift"; sourceTree = ""; }; + 659C8E6728DBA06C00C3AFF9 /* Constrainable+NSLayoutDimension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Constrainable+NSLayoutDimension.swift"; sourceTree = ""; }; + 659C8E6828DBA06C00C3AFF9 /* Constrainable+UIView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Constrainable+UIView.swift"; sourceTree = ""; }; + 659C8E6928DBA06C00C3AFF9 /* ConstraintRelation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintRelation.swift; sourceTree = ""; }; + 659C8E6A28DBA06C00C3AFF9 /* Constrainable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constrainable.swift; sourceTree = ""; }; + 659C8E6B28DBA06C00C3AFF9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 659C8E7A28DBA08300C3AFF9 /* VanillaConstraintsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VanillaConstraintsTests.swift; sourceTree = ""; }; + 659C8E7B28DBA08300C3AFF9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C056F0F62121A1AD007B6791 /* VanillaConstraints.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = VanillaConstraints.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - C056F0FA2121A1AD007B6791 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C056F0FF2121A1AD007B6791 /* VanillaConstraintsTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VanillaConstraintsTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - C056F1042121A1AD007B6791 /* VanillaConstraintsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VanillaConstraintsTests.swift; sourceTree = ""; }; - C056F1062121A1AD007B6791 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - C056F1112121A260007B6791 /* Constrainable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constrainable.swift; sourceTree = ""; }; - C056F1132121A337007B6791 /* Extensions+UIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extensions+UIView.swift"; sourceTree = ""; }; - C056F1172121A3D3007B6791 /* ConstraintRelation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConstraintRelation.swift; sourceTree = ""; }; - C056F1192121A4B4007B6791 /* Constrainable+UIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Constrainable+UIView.swift"; sourceTree = ""; }; - C056F11B2121A4FA007B6791 /* Extensions+NSLayoutXAxisAnchor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutXAxisAnchor.swift"; sourceTree = ""; }; - C056F11E2121A52E007B6791 /* Extensions+NSLayoutYAxisAnchor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutYAxisAnchor.swift"; sourceTree = ""; }; - C056F1202121A553007B6791 /* Extensions+NSLayoutConstraint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutConstraint.swift"; sourceTree = ""; }; - C056F1222121A5B4007B6791 /* Extensions+NSLayoutDimension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extensions+NSLayoutDimension.swift"; sourceTree = ""; }; - C056F1252121A695007B6791 /* Extensions+Constrainable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Extensions+Constrainable.swift"; sourceTree = ""; }; - DCAED61B21A1C1BC007BDE95 /* Constrainable+NSLayoutYAxisAnchor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Constrainable+NSLayoutYAxisAnchor.swift"; sourceTree = ""; }; - DCAED61D21A1C242007BDE95 /* Constrainable+NSLayoutXAxisAnchor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Constrainable+NSLayoutXAxisAnchor.swift"; sourceTree = ""; }; - DCAED61F21A1C2F9007BDE95 /* Constrainable+NSLayoutDimension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Constrainable+NSLayoutDimension.swift"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -72,59 +72,61 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - C056F0EC2121A1AD007B6791 = { + 659C8E5D28DBA06C00C3AFF9 /* VanillaConstraints */ = { isa = PBXGroup; children = ( - C056F0F82121A1AD007B6791 /* VanillaConstraints */, - C056F1032121A1AD007B6791 /* VanillaConstraintsTests */, - C056F0F72121A1AD007B6791 /* Products */, + 659C8E5E28DBA06C00C3AFF9 /* Sources */, + 659C8E6B28DBA06C00C3AFF9 /* Info.plist */, ); + name = VanillaConstraints; + path = Sources/VanillaConstraints; sourceTree = ""; }; - C056F0F72121A1AD007B6791 /* Products */ = { + 659C8E5E28DBA06C00C3AFF9 /* Sources */ = { isa = PBXGroup; children = ( - C056F0F62121A1AD007B6791 /* VanillaConstraints.framework */, - C056F0FF2121A1AD007B6791 /* VanillaConstraintsTests.xctest */, + 659C8E5F28DBA06C00C3AFF9 /* Extensions+NSLayoutXAxisAnchor.swift */, + 659C8E6028DBA06C00C3AFF9 /* Extensions+Constrainable.swift */, + 659C8E6128DBA06C00C3AFF9 /* Constrainable+NSLayoutYAxisAnchor.swift */, + 659C8E6228DBA06C00C3AFF9 /* Extensions+NSLayoutYAxisAnchor.swift */, + 659C8E6328DBA06C00C3AFF9 /* Constrainable+NSLayoutXAxisAnchor.swift */, + 659C8E6428DBA06C00C3AFF9 /* Extensions+NSLayoutConstraint.swift */, + 659C8E6528DBA06C00C3AFF9 /* Extensions+NSLayoutDimension.swift */, + 659C8E6628DBA06C00C3AFF9 /* Extensions+UIView.swift */, + 659C8E6728DBA06C00C3AFF9 /* Constrainable+NSLayoutDimension.swift */, + 659C8E6828DBA06C00C3AFF9 /* Constrainable+UIView.swift */, + 659C8E6928DBA06C00C3AFF9 /* ConstraintRelation.swift */, + 659C8E6A28DBA06C00C3AFF9 /* Constrainable.swift */, ); - name = Products; + path = Sources; sourceTree = ""; }; - C056F0F82121A1AD007B6791 /* VanillaConstraints */ = { + 659C8E7928DBA08300C3AFF9 /* VanillaConstraintsTests */ = { isa = PBXGroup; children = ( - C056F1102121A243007B6791 /* Source */, - C056F0FA2121A1AD007B6791 /* Info.plist */, + 659C8E7A28DBA08300C3AFF9 /* VanillaConstraintsTests.swift */, + 659C8E7B28DBA08300C3AFF9 /* Info.plist */, ); - path = VanillaConstraints; + name = VanillaConstraintsTests; + path = Tests/VanillaConstraintsTests; sourceTree = ""; }; - C056F1032121A1AD007B6791 /* VanillaConstraintsTests */ = { + C056F0EC2121A1AD007B6791 = { isa = PBXGroup; children = ( - C056F1042121A1AD007B6791 /* VanillaConstraintsTests.swift */, - C056F1062121A1AD007B6791 /* Info.plist */, + 659C8E5D28DBA06C00C3AFF9 /* VanillaConstraints */, + 659C8E7928DBA08300C3AFF9 /* VanillaConstraintsTests */, + C056F0F72121A1AD007B6791 /* Products */, ); - path = VanillaConstraintsTests; sourceTree = ""; }; - C056F1102121A243007B6791 /* Source */ = { + C056F0F72121A1AD007B6791 /* Products */ = { isa = PBXGroup; children = ( - C056F1112121A260007B6791 /* Constrainable.swift */, - C056F1172121A3D3007B6791 /* ConstraintRelation.swift */, - C056F1192121A4B4007B6791 /* Constrainable+UIView.swift */, - DCAED61B21A1C1BC007BDE95 /* Constrainable+NSLayoutYAxisAnchor.swift */, - DCAED61D21A1C242007BDE95 /* Constrainable+NSLayoutXAxisAnchor.swift */, - DCAED61F21A1C2F9007BDE95 /* Constrainable+NSLayoutDimension.swift */, - C056F1132121A337007B6791 /* Extensions+UIView.swift */, - C056F11B2121A4FA007B6791 /* Extensions+NSLayoutXAxisAnchor.swift */, - C056F11E2121A52E007B6791 /* Extensions+NSLayoutYAxisAnchor.swift */, - C056F1202121A553007B6791 /* Extensions+NSLayoutConstraint.swift */, - C056F1222121A5B4007B6791 /* Extensions+NSLayoutDimension.swift */, - C056F1252121A695007B6791 /* Extensions+Constrainable.swift */, + C056F0F62121A1AD007B6791 /* VanillaConstraints.framework */, + C056F0FF2121A1AD007B6791 /* VanillaConstraintsTests.xctest */, ); - path = Source; + name = Products; sourceTree = ""; }; /* End PBXGroup section */ @@ -237,18 +239,18 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - C056F11A2121A4B4007B6791 /* Constrainable+UIView.swift in Sources */, - DCAED62021A1C2F9007BDE95 /* Constrainable+NSLayoutDimension.swift in Sources */, - C056F1232121A5B4007B6791 /* Extensions+NSLayoutDimension.swift in Sources */, - C056F1262121A695007B6791 /* Extensions+Constrainable.swift in Sources */, - DCAED61E21A1C242007BDE95 /* Constrainable+NSLayoutXAxisAnchor.swift in Sources */, - C056F11C2121A4FA007B6791 /* Extensions+NSLayoutXAxisAnchor.swift in Sources */, - DCAED61C21A1C1BC007BDE95 /* Constrainable+NSLayoutYAxisAnchor.swift in Sources */, - C056F1212121A553007B6791 /* Extensions+NSLayoutConstraint.swift in Sources */, - C056F1142121A337007B6791 /* Extensions+UIView.swift in Sources */, - C056F1182121A3D3007B6791 /* ConstraintRelation.swift in Sources */, - C056F11F2121A52E007B6791 /* Extensions+NSLayoutYAxisAnchor.swift in Sources */, - C056F1122121A260007B6791 /* Constrainable.swift in Sources */, + 659C8E6F28DBA06C00C3AFF9 /* Extensions+NSLayoutYAxisAnchor.swift in Sources */, + 659C8E7728DBA06C00C3AFF9 /* Constrainable.swift in Sources */, + 659C8E6C28DBA06C00C3AFF9 /* Extensions+NSLayoutXAxisAnchor.swift in Sources */, + 659C8E7028DBA06C00C3AFF9 /* Constrainable+NSLayoutXAxisAnchor.swift in Sources */, + 659C8E7228DBA06C00C3AFF9 /* Extensions+NSLayoutDimension.swift in Sources */, + 659C8E7128DBA06C00C3AFF9 /* Extensions+NSLayoutConstraint.swift in Sources */, + 659C8E6E28DBA06C00C3AFF9 /* Constrainable+NSLayoutYAxisAnchor.swift in Sources */, + 659C8E7328DBA06C00C3AFF9 /* Extensions+UIView.swift in Sources */, + 659C8E7528DBA06C00C3AFF9 /* Constrainable+UIView.swift in Sources */, + 659C8E7428DBA06C00C3AFF9 /* Constrainable+NSLayoutDimension.swift in Sources */, + 659C8E7628DBA06C00C3AFF9 /* ConstraintRelation.swift in Sources */, + 659C8E6D28DBA06C00C3AFF9 /* Extensions+Constrainable.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -256,7 +258,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - C056F1052121A1AD007B6791 /* VanillaConstraintsTests.swift in Sources */, + 659C8E7E28DBA09900C3AFF9 /* VanillaConstraintsTests.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -402,7 +404,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "$(SRCROOT)/VanillaConstraints/Info.plist"; + INFOPLIST_FILE = "$(SRCROOT)/Sources/VanillaConstraints/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = ( @@ -430,7 +432,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = "$(SRCROOT)/VanillaConstraints/Info.plist"; + INFOPLIST_FILE = "$(SRCROOT)/Sources/VanillaConstraints/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = ( From 22c4d13e3958a1049ebb978e9687f0830e1f0e59 Mon Sep 17 00:00:00 2001 From: Ilia Gutu Date: Wed, 21 Sep 2022 22:08:05 +0200 Subject: [PATCH 2/3] Update Readme.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index a237869..a99668d 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,14 @@ Then, run the following command: $ carthage update ``` +### Swift Package Manager + +Add the following dependency to your **Package.swift** file: + +```swift +.package(url: "https://github.com/jdisho/VanillaConstraints", from: "1.0.4") +``` + ### Manually If you prefer not to use any of the dependency managers, you can integrate `VanillaConstraints` into your project manually, by downloading the source code and placing the files on your project directory. From 71f07d508f70fdd8323a3d7044290de2b72041e9 Mon Sep 17 00:00:00 2001 From: Ilia Date: Sat, 12 Aug 2023 14:28:30 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a99668d..001ea32 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ $ carthage update Add the following dependency to your **Package.swift** file: ```swift -.package(url: "https://github.com/jdisho/VanillaConstraints", from: "1.0.4") +.package(url: "https://github.com/gugell/VanillaConstraints", from: "1.0.4") ``` ### Manually