From 19f59a63f0faac287f4e59986959859d81ec851c Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 8 May 2025 17:55:53 +0800 Subject: [PATCH 1/3] Update #file to #fileID to avoid leak full path information (#823) --- Sources/ConstraintMakerRelatable+Extensions.swift | 6 +++--- Sources/ConstraintMakerRelatable.swift | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Sources/ConstraintMakerRelatable+Extensions.swift b/Sources/ConstraintMakerRelatable+Extensions.swift index bfde2725..a5e3ffb1 100644 --- a/Sources/ConstraintMakerRelatable+Extensions.swift +++ b/Sources/ConstraintMakerRelatable+Extensions.swift @@ -31,7 +31,7 @@ extension ConstraintMakerRelatable { @discardableResult - public func equalToSuperview(_ closure: (ConstraintView) -> T, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable { + public func equalToSuperview(_ closure: (ConstraintView) -> T, _ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable { guard let other = self.description.item.superview else { fatalError("Expected superview but found nil when attempting make constraint `equalToSuperview`.") } @@ -39,7 +39,7 @@ extension ConstraintMakerRelatable { } @discardableResult - public func lessThanOrEqualToSuperview(_ closure: (ConstraintView) -> T, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable { + public func lessThanOrEqualToSuperview(_ closure: (ConstraintView) -> T, _ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable { guard let other = self.description.item.superview else { fatalError("Expected superview but found nil when attempting make constraint `lessThanOrEqualToSuperview`.") } @@ -47,7 +47,7 @@ extension ConstraintMakerRelatable { } @discardableResult - public func greaterThanOrEqualToSuperview(_ closure: (ConstraintView) -> T, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable { + public func greaterThanOrEqualToSuperview(_ closure: (ConstraintView) -> T, _ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable { guard let other = self.description.item.superview else { fatalError("Expected superview but found nil when attempting make constraint `greaterThanOrEqualToSuperview`.") } diff --git a/Sources/ConstraintMakerRelatable.swift b/Sources/ConstraintMakerRelatable.swift index 0a3d5ee2..d18b5f0e 100644 --- a/Sources/ConstraintMakerRelatable.swift +++ b/Sources/ConstraintMakerRelatable.swift @@ -75,12 +75,12 @@ public class ConstraintMakerRelatable { } @discardableResult - public func equalTo(_ other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable { + public func equalTo(_ other: ConstraintRelatableTarget, _ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable { return self.relatedTo(other, relation: .equal, file: file, line: line) } @discardableResult - public func equalToSuperview(_ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable { + public func equalToSuperview(_ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable { guard let other = self.description.item.superview else { fatalError("Expected superview but found nil when attempting make constraint `equalToSuperview`.") } @@ -88,12 +88,12 @@ public class ConstraintMakerRelatable { } @discardableResult - public func lessThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable { + public func lessThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable { return self.relatedTo(other, relation: .lessThanOrEqual, file: file, line: line) } @discardableResult - public func lessThanOrEqualToSuperview(_ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable { + public func lessThanOrEqualToSuperview(_ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable { guard let other = self.description.item.superview else { fatalError("Expected superview but found nil when attempting make constraint `lessThanOrEqualToSuperview`.") } @@ -101,12 +101,12 @@ public class ConstraintMakerRelatable { } @discardableResult - public func greaterThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable { + public func greaterThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable { return self.relatedTo(other, relation: .greaterThanOrEqual, file: file, line: line) } @discardableResult - public func greaterThanOrEqualToSuperview(_ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable { + public func greaterThanOrEqualToSuperview(_ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable { guard let other = self.description.item.superview else { fatalError("Expected superview but found nil when attempting make constraint `greaterThanOrEqualToSuperview`.") } From e27a338a03a5f388de759da63f9baf7988ed9e00 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Sun, 31 May 2026 21:22:27 +1200 Subject: [PATCH 2/3] Update Project * Upgrade iOS/tvOS to 14.x+ * Upgrade macOS to 12.x+ * Remove Cocoapods and Carthage Support * Remove older documentation * Bump Swift tooling required to 6.x+ --- Documentation/SnapKit 3.0 Migration Guide.md | 16 - Package.swift | 10 +- README.md | 74 +- SnapKit.podspec | 28 - SnapKit.xcodeproj/project.pbxproj | 686 ------------------ .../xcshareddata/xcschemes/SnapKit.xcscheme | 95 --- .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/SnapKit.xccheckout | 41 -- SnapKitPlayground.playground/Contents.swift | 29 - .../contents.xcplayground | 4 - .../contents.xcworkspacedata | 4 - .../timeline.xctimeline | 6 - 12 files changed, 11 insertions(+), 990 deletions(-) delete mode 100644 Documentation/SnapKit 3.0 Migration Guide.md delete mode 100644 SnapKit.podspec delete mode 100644 SnapKit.xcodeproj/project.pbxproj delete mode 100644 SnapKit.xcodeproj/xcshareddata/xcschemes/SnapKit.xcscheme delete mode 100644 SnapKit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 SnapKit.xcworkspace/xcshareddata/SnapKit.xccheckout delete mode 100644 SnapKitPlayground.playground/Contents.swift delete mode 100644 SnapKitPlayground.playground/contents.xcplayground delete mode 100644 SnapKitPlayground.playground/playground.xcworkspace/contents.xcworkspacedata delete mode 100644 SnapKitPlayground.playground/timeline.xctimeline diff --git a/Documentation/SnapKit 3.0 Migration Guide.md b/Documentation/SnapKit 3.0 Migration Guide.md deleted file mode 100644 index 5ab19caf..00000000 --- a/Documentation/SnapKit 3.0 Migration Guide.md +++ /dev/null @@ -1,16 +0,0 @@ -## SnapKit 3.0 Migration Guide - -SnapKit 3.0 has many breaking changes from earlier versions. You can read the [notes on releases](https://github.com/SnapKit/SnapKit/releases) for more details. - -1. Upgrade SnapKit installation -2. Find all `snp_` and replace with `snp.` -3. Find all `equalTo(UIEdgeInsets)` and ensure any right or bottom inset values are no longer inverted -4. Build and fix deprecated APIs -5. Test every screen of UI to ensure visual compatibility - -If you find any issues with migration please open an issue. - -### Known Quirks - -1. `make.center.equalTo(0)` now positions a view at 0,0 in it's superview rather than the center, use `make.center.equalToSuperview` instead. -2. `updateConstraints` will throw a fatal error if it generates a *new* constraint that did not exist before. Instead use `makeConstraints` to add additional constraints. \ No newline at end of file diff --git a/Package.swift b/Package.swift index a6601411..4db86dd9 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.8 +// swift-tools-version:6.0 // // SnapKit // @@ -28,9 +28,9 @@ import PackageDescription let package = Package( name: "SnapKit", platforms: [ - .iOS(.v12), - .macOS(.v10_13), - .tvOS(.v12) + .iOS(.v14), + .macOS(.v12), + .tvOS(.v14) ], products: [ .library(name: "SnapKit", targets: ["SnapKit"]), @@ -40,7 +40,7 @@ let package = Package( .target(name: "SnapKit", path: "Sources", resources: [.copy("PrivacyInfo.xcprivacy")]), .testTarget(name: "SnapKitTests", dependencies: ["SnapKit"]), ], - swiftLanguageVersions: [ + swiftLanguageModes: [ .v5 ] ) diff --git a/README.md b/README.md index 303a4a56..f7aab958 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,7 @@ SnapKit is a DSL to make Auto Layout easy on both iOS and OS X. [![Build Status](https://travis-ci.org/SnapKit/SnapKit.svg)](https://travis-ci.org/SnapKit/SnapKit) [![Platform](https://img.shields.io/cocoapods/p/SnapKit.svg?style=flat)](https://github.com/SnapKit/SnapKit) -[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/SnapKit.svg)](https://cocoapods.org/pods/SnapKit) -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -#### ⚠️ **To use with Swift 4.x please ensure you are using >= 4.0.0** ⚠️ #### ⚠️ **To use with Swift 5.x please ensure you are using >= 5.0.0** ⚠️ ## Contents @@ -22,13 +19,9 @@ SnapKit is a DSL to make Auto Layout easy on both iOS and OS X. ## Requirements -- iOS 12.0+ / Mac OS X 10.13+ / tvOS 10.0+ -- Xcode 10.0+ -- Swift 4.0+ - -## Migration Guides - -- [SnapKit 3.0 Migration Guide](Documentation/SnapKit%203.0%20Migration%20Guide.md) +- iOS 14.0+ / macOS 12.0+ / tvOS 14.0+ +- Xcode 26.0+ +- Swift 6.0+ (Toolchain, not syntax) ## Communication @@ -38,67 +31,19 @@ SnapKit is a DSL to make Auto Layout easy on both iOS and OS X. - If you **have a feature request**, open an issue. - If you **want to contribute**, submit a pull request. - ## Installation -### CocoaPods - -[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: - -```bash -$ gem install cocoapods -``` - -> CocoaPods 1.1.0+ is required to build SnapKit 4.0.0+. - -To integrate SnapKit into your Xcode project using CocoaPods, specify it in your `Podfile`: - -```ruby -source 'https://github.com/CocoaPods/Specs.git' -platform :ios, '12.0' -use_frameworks! - -target '' do - pod 'SnapKit', '~> 5.7.0' -end -``` - -Then, run the following command: - -```bash -$ pod install -``` - -### Carthage - -[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. - -You can install Carthage with [Homebrew](http://brew.sh/) using the following command: - -```bash -$ brew update -$ brew install carthage -``` - -To integrate SnapKit into your Xcode project using Carthage, specify it in your `Cartfile`: - -```ogdl -github "SnapKit/SnapKit" ~> 5.0.0 -``` - -Run `carthage update` to build the framework and drag the built `SnapKit.framework` into your Xcode project. - ### Swift Package Manager [Swift Package Manager](https://swift.org/package-manager/) is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. -> Xcode 11+ is required to build SnapKit using Swift Package Manager. +> Xcode 26+ is required to build SnapKit using Swift Package Manager. To integrate SnapKit into your Xcode project using Swift Package Manager, add it to the dependencies value of your `Package.swift`: ```swift dependencies: [ - .package(url: "https://github.com/SnapKit/SnapKit.git", .upToNextMajor(from: "5.0.1")) + .package(url: "https://github.com/SnapKit/SnapKit.git", .upToNextMajor(from: "6.0.0")) ] ``` @@ -133,13 +78,6 @@ class MyViewController: UIViewController { } ``` -### Playground -You can try SnapKit in Playground. - -**Note:** - -> To try SnapKit in playground, open `SnapKit.xcworkspace` and build SnapKit.framework for any simulator first. - ### Resources - [Documentation](https://snapkit.github.io/SnapKit/docs/) @@ -147,7 +85,7 @@ You can try SnapKit in Playground. ## Credits -- Robert Payne ([@robertjpayne](https://twitter.com/robertjpayne)) +- Robert Payne ([@robertjpayne](https://github.com/robertjpayne)) - Many other contributors ## License diff --git a/SnapKit.podspec b/SnapKit.podspec deleted file mode 100644 index 62724cae..00000000 --- a/SnapKit.podspec +++ /dev/null @@ -1,28 +0,0 @@ -Pod::Spec.new do |s| - s.name = 'SnapKit' - s.version = '5.7.1' - s.license = 'MIT' - s.summary = 'Harness the power of auto layout with a simplified, chainable, and compile time safe syntax.' - s.homepage = 'https://github.com/SnapKit/SnapKit' - s.authors = { 'Robert Payne' => 'robertpayne@me.com' } - s.social_media_url = 'http://twitter.com/robertjpayne' - s.source = { :git => 'https://github.com/SnapKit/SnapKit.git', :tag => '5.7.1' } - - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - - s.source_files = 'Sources/*.swift' - - s.libraries = 'swiftCoreGraphics' - - s.xcconfig = { - 'LIBRARY_SEARCH_PATHS' => '$(SDKROOT)/usr/lib/swift', - } - - s.resource_bundles = { - 'SnapKit_Privacy' => ['Sources/PrivacyInfo.xcprivacy'], - } - - s.swift_versions = ['5.0'] -end diff --git a/SnapKit.xcodeproj/project.pbxproj b/SnapKit.xcodeproj/project.pbxproj deleted file mode 100644 index 2f9c7216..00000000 --- a/SnapKit.xcodeproj/project.pbxproj +++ /dev/null @@ -1,686 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 54; - objects = { - -/* Begin PBXBuildFile section */ - 2DBA080E1F1FAD66001CFED4 /* Typealiases.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DBA080D1F1FAD66001CFED4 /* Typealiases.swift */; }; - 3CA7D6C224592D4D005E10C2 /* ConstraintMakerRelatable+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CA7D6C124592D4D005E10C2 /* ConstraintMakerRelatable+Extensions.swift */; }; - 5D64AC0028D0879500FFEC29 /* libswiftCoreGraphics.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D64ABFF28D0878A00FFEC29 /* libswiftCoreGraphics.tbd */; }; - 7E1CB2AE227BB5520066B6C0 /* ConstraintDirectionalInsetTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E1CB2AD227BB5520066B6C0 /* ConstraintDirectionalInsetTarget.swift */; }; - 7E1CB2B0227BBDF70066B6C0 /* ConstraintDirectionalInsets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E1CB2AF227BBDF70066B6C0 /* ConstraintDirectionalInsets.swift */; }; - EE235F5F1C5785BC00C08960 /* Debugging.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F5E1C5785BC00C08960 /* Debugging.swift */; }; - EE235F6D1C5785C600C08960 /* Constraint.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F621C5785C600C08960 /* Constraint.swift */; }; - EE235F701C5785C600C08960 /* ConstraintDescription.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F631C5785C600C08960 /* ConstraintDescription.swift */; }; - EE235F731C5785C600C08960 /* ConstraintInsets.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F641C5785C600C08960 /* ConstraintInsets.swift */; }; - EE235F761C5785C600C08960 /* ConstraintConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F651C5785C600C08960 /* ConstraintConfig.swift */; }; - EE235F791C5785C600C08960 /* ConstraintView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F661C5785C600C08960 /* ConstraintView.swift */; }; - EE235F7F1C5785C600C08960 /* ConstraintRelation.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F681C5785C600C08960 /* ConstraintRelation.swift */; }; - EE235F851C5785C600C08960 /* ConstraintAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F6A1C5785C600C08960 /* ConstraintAttributes.swift */; }; - EE235F881C5785C600C08960 /* ConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F6B1C5785C600C08960 /* ConstraintItem.swift */; }; - EE235F8B1C5785C600C08960 /* LayoutConstraint.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F6C1C5785C600C08960 /* LayoutConstraint.swift */; }; - EE235F941C5785CE00C08960 /* ConstraintRelatableTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F8E1C5785CE00C08960 /* ConstraintRelatableTarget.swift */; }; - EE235F971C5785CE00C08960 /* ConstraintConstantTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F8F1C5785CE00C08960 /* ConstraintConstantTarget.swift */; }; - EE235F9A1C5785CE00C08960 /* ConstraintPriorityTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F901C5785CE00C08960 /* ConstraintPriorityTarget.swift */; }; - EE235F9D1C5785CE00C08960 /* ConstraintMultiplierTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F911C5785CE00C08960 /* ConstraintMultiplierTarget.swift */; }; - EE235FA01C5785CE00C08960 /* ConstraintOffsetTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F921C5785CE00C08960 /* ConstraintOffsetTarget.swift */; }; - EE235FA31C5785CE00C08960 /* ConstraintInsetTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235F931C5785CE00C08960 /* ConstraintInsetTarget.swift */; }; - EE235FAC1C5785D400C08960 /* ConstraintMaker.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FA61C5785D400C08960 /* ConstraintMaker.swift */; }; - EE235FAF1C5785D400C08960 /* ConstraintMakerFinalizable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FA71C5785D400C08960 /* ConstraintMakerFinalizable.swift */; }; - EE235FB21C5785D400C08960 /* ConstraintMakerPrioritizable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FA81C5785D400C08960 /* ConstraintMakerPrioritizable.swift */; }; - EE235FB51C5785D400C08960 /* ConstraintMakerEditable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FA91C5785D400C08960 /* ConstraintMakerEditable.swift */; }; - EE235FB81C5785D400C08960 /* ConstraintMakerRelatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FAA1C5785D400C08960 /* ConstraintMakerRelatable.swift */; }; - EE235FBB1C5785D400C08960 /* ConstraintMakerExtendable.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FAB1C5785D400C08960 /* ConstraintMakerExtendable.swift */; }; - EE235FC01C5785DC00C08960 /* ConstraintViewDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FBE1C5785DC00C08960 /* ConstraintViewDSL.swift */; }; - EE235FC31C5785DC00C08960 /* ConstraintLayoutSupportDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FBF1C5785DC00C08960 /* ConstraintLayoutSupportDSL.swift */; }; - EE235FC81C5785E200C08960 /* ConstraintView+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE235FC61C5785E200C08960 /* ConstraintView+Extensions.swift */; }; - EE4910991B19A40200A54F1F /* SnapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EEBCC9D819CC627D0083B827 /* SnapKit.framework */; }; - EE6087751E4F133E0029CF84 /* ConstraintPriority.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE6087741E4F133E0029CF84 /* ConstraintPriority.swift */; }; - EE6898CB1DA7B3A100D47F33 /* LayoutConstraintItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE6898CA1DA7B3A100D47F33 /* LayoutConstraintItem.swift */; }; - EECDB3931AC0CB52006BBC11 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EECDB36A1AC0C95C006BBC11 /* Tests.swift */; }; - EEECE4BD2B4160D800738EF0 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = EEECE4BC2B4160D200738EF0 /* PrivacyInfo.xcprivacy */; }; - EEECE4BE2B4160D900738EF0 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = EEECE4BC2B4160D200738EF0 /* PrivacyInfo.xcprivacy */; }; - EEF68F9E1D78492400980C26 /* ConstraintLayoutGuideDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF68F9D1D78492400980C26 /* ConstraintLayoutGuideDSL.swift */; }; - EEF68FA61D784A5300980C26 /* ConstraintDSL.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF68FA51D784A5300980C26 /* ConstraintDSL.swift */; }; - EEF68FB01D784FB100980C26 /* ConstraintLayoutGuide+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF68FAF1D784FB100980C26 /* ConstraintLayoutGuide+Extensions.swift */; }; - EEF68FB41D784FBA00980C26 /* UILayoutSupport+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF68FB31D784FBA00980C26 /* UILayoutSupport+Extensions.swift */; }; - EEF68FBC1D78653000980C26 /* ConstraintLayoutGuide.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF68FBB1D78653000980C26 /* ConstraintLayoutGuide.swift */; }; - EEF68FC01D7865AA00980C26 /* ConstraintLayoutSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEF68FBF1D7865AA00980C26 /* ConstraintLayoutSupport.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 2DBA080D1F1FAD66001CFED4 /* Typealiases.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Typealiases.swift; sourceTree = ""; }; - 3CA7D6C124592D4D005E10C2 /* ConstraintMakerRelatable+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "ConstraintMakerRelatable+Extensions.swift"; sourceTree = ""; }; - 537DCE9A1C35CD4100B5B899 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.1.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; - 5D64ABFF28D0878A00FFEC29 /* libswiftCoreGraphics.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libswiftCoreGraphics.tbd; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS16.0.sdk/usr/lib/swift/libswiftCoreGraphics.tbd; sourceTree = DEVELOPER_DIR; }; - 7E1CB2AD227BB5520066B6C0 /* ConstraintDirectionalInsetTarget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConstraintDirectionalInsetTarget.swift; sourceTree = ""; }; - 7E1CB2AF227BBDF70066B6C0 /* ConstraintDirectionalInsets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConstraintDirectionalInsets.swift; sourceTree = ""; }; - EE235F5E1C5785BC00C08960 /* Debugging.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Debugging.swift; sourceTree = ""; }; - EE235F621C5785C600C08960 /* Constraint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constraint.swift; sourceTree = ""; }; - EE235F631C5785C600C08960 /* ConstraintDescription.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintDescription.swift; sourceTree = ""; }; - EE235F641C5785C600C08960 /* ConstraintInsets.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintInsets.swift; sourceTree = ""; }; - EE235F651C5785C600C08960 /* ConstraintConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintConfig.swift; sourceTree = ""; }; - EE235F661C5785C600C08960 /* ConstraintView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintView.swift; sourceTree = ""; }; - EE235F681C5785C600C08960 /* ConstraintRelation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintRelation.swift; sourceTree = ""; }; - EE235F6A1C5785C600C08960 /* ConstraintAttributes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintAttributes.swift; sourceTree = ""; }; - EE235F6B1C5785C600C08960 /* ConstraintItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintItem.swift; sourceTree = ""; }; - EE235F6C1C5785C600C08960 /* LayoutConstraint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LayoutConstraint.swift; sourceTree = ""; }; - EE235F8E1C5785CE00C08960 /* ConstraintRelatableTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintRelatableTarget.swift; sourceTree = ""; }; - EE235F8F1C5785CE00C08960 /* ConstraintConstantTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintConstantTarget.swift; sourceTree = ""; }; - EE235F901C5785CE00C08960 /* ConstraintPriorityTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintPriorityTarget.swift; sourceTree = ""; }; - EE235F911C5785CE00C08960 /* ConstraintMultiplierTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMultiplierTarget.swift; sourceTree = ""; }; - EE235F921C5785CE00C08960 /* ConstraintOffsetTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintOffsetTarget.swift; sourceTree = ""; }; - EE235F931C5785CE00C08960 /* ConstraintInsetTarget.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintInsetTarget.swift; sourceTree = ""; }; - EE235FA61C5785D400C08960 /* ConstraintMaker.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMaker.swift; sourceTree = ""; }; - EE235FA71C5785D400C08960 /* ConstraintMakerFinalizable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMakerFinalizable.swift; sourceTree = ""; }; - EE235FA81C5785D400C08960 /* ConstraintMakerPrioritizable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMakerPrioritizable.swift; sourceTree = ""; }; - EE235FA91C5785D400C08960 /* ConstraintMakerEditable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMakerEditable.swift; sourceTree = ""; }; - EE235FAA1C5785D400C08960 /* ConstraintMakerRelatable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMakerRelatable.swift; sourceTree = ""; }; - EE235FAB1C5785D400C08960 /* ConstraintMakerExtendable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintMakerExtendable.swift; sourceTree = ""; }; - EE235FBE1C5785DC00C08960 /* ConstraintViewDSL.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintViewDSL.swift; sourceTree = ""; }; - EE235FBF1C5785DC00C08960 /* ConstraintLayoutSupportDSL.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintLayoutSupportDSL.swift; sourceTree = ""; }; - EE235FC61C5785E200C08960 /* ConstraintView+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ConstraintView+Extensions.swift"; sourceTree = ""; }; - EE6087741E4F133E0029CF84 /* ConstraintPriority.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintPriority.swift; sourceTree = ""; }; - EE6898CA1DA7B3A100D47F33 /* LayoutConstraintItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LayoutConstraintItem.swift; sourceTree = ""; }; - EE6DB559251D9A6B00E0C374 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - EE94F6081AC0F10A008767FF /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; - EE94F60A1AC0F10F008767FF /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = DEVELOPER_DIR; }; - EEBCC9D819CC627D0083B827 /* SnapKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SnapKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - EEBCC9E219CC627E0083B827 /* SnapKit Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SnapKit Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - EECDB3691AC0C95C006BBC11 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = SnapKitTests/Info.plist; sourceTree = ""; }; - EECDB36A1AC0C95C006BBC11 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Tests.swift; path = SnapKitTests/Tests.swift; sourceTree = ""; }; - EEECE4BC2B4160D200738EF0 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; - EEF68F9D1D78492400980C26 /* ConstraintLayoutGuideDSL.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintLayoutGuideDSL.swift; sourceTree = ""; }; - EEF68FA51D784A5300980C26 /* ConstraintDSL.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintDSL.swift; sourceTree = ""; }; - EEF68FAF1D784FB100980C26 /* ConstraintLayoutGuide+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ConstraintLayoutGuide+Extensions.swift"; sourceTree = ""; }; - EEF68FB31D784FBA00980C26 /* UILayoutSupport+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UILayoutSupport+Extensions.swift"; sourceTree = ""; }; - EEF68FBB1D78653000980C26 /* ConstraintLayoutGuide.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintLayoutGuide.swift; sourceTree = ""; }; - EEF68FBF1D7865AA00980C26 /* ConstraintLayoutSupport.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ConstraintLayoutSupport.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - EE94F60E1AC0F136008767FF /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - EE4910991B19A40200A54F1F /* SnapKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EEBCC9D419CC627D0083B827 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5D64AC0028D0879500FFEC29 /* libswiftCoreGraphics.tbd in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - DDC9FD8C1981B4DD009612C7 = { - isa = PBXGroup; - children = ( - EE6DB557251D9A6B00E0C374 /* Supporting Files */, - EECDB35D1AC0C95C006BBC11 /* Sources */, - EE94F60C1AC0F113008767FF /* Frameworks */, - DDC9FD961981B4DD009612C7 /* Products */, - ); - sourceTree = ""; - }; - DDC9FD961981B4DD009612C7 /* Products */ = { - isa = PBXGroup; - children = ( - EEBCC9D819CC627D0083B827 /* SnapKit.framework */, - EEBCC9E219CC627E0083B827 /* SnapKit Tests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - EE235F581C57858700C08960 /* Extensions */ = { - isa = PBXGroup; - children = ( - EE235FC61C5785E200C08960 /* ConstraintView+Extensions.swift */, - EEF68FAF1D784FB100980C26 /* ConstraintLayoutGuide+Extensions.swift */, - EEF68FB31D784FBA00980C26 /* UILayoutSupport+Extensions.swift */, - 3CA7D6C124592D4D005E10C2 /* ConstraintMakerRelatable+Extensions.swift */, - ); - name = Extensions; - sourceTree = ""; - }; - EE235F591C57859200C08960 /* DSLs */ = { - isa = PBXGroup; - children = ( - EEF68FA51D784A5300980C26 /* ConstraintDSL.swift */, - EE235FBE1C5785DC00C08960 /* ConstraintViewDSL.swift */, - EEF68F9D1D78492400980C26 /* ConstraintLayoutGuideDSL.swift */, - EE235FBF1C5785DC00C08960 /* ConstraintLayoutSupportDSL.swift */, - ); - name = DSLs; - sourceTree = ""; - }; - EE235F5A1C57859900C08960 /* Maker */ = { - isa = PBXGroup; - children = ( - EE235FA61C5785D400C08960 /* ConstraintMaker.swift */, - EE235FA71C5785D400C08960 /* ConstraintMakerFinalizable.swift */, - EE235FA81C5785D400C08960 /* ConstraintMakerPrioritizable.swift */, - EE235FA91C5785D400C08960 /* ConstraintMakerEditable.swift */, - EE235FAA1C5785D400C08960 /* ConstraintMakerRelatable.swift */, - EE235FAB1C5785D400C08960 /* ConstraintMakerExtendable.swift */, - ); - name = Maker; - sourceTree = ""; - }; - EE235F5B1C57859E00C08960 /* Targets */ = { - isa = PBXGroup; - children = ( - EE235F8E1C5785CE00C08960 /* ConstraintRelatableTarget.swift */, - EE235F8F1C5785CE00C08960 /* ConstraintConstantTarget.swift */, - EE235F901C5785CE00C08960 /* ConstraintPriorityTarget.swift */, - EE235F911C5785CE00C08960 /* ConstraintMultiplierTarget.swift */, - EE235F921C5785CE00C08960 /* ConstraintOffsetTarget.swift */, - EE235F931C5785CE00C08960 /* ConstraintInsetTarget.swift */, - 7E1CB2AD227BB5520066B6C0 /* ConstraintDirectionalInsetTarget.swift */, - ); - name = Targets; - sourceTree = ""; - }; - EE235F5C1C5785A400C08960 /* Models */ = { - isa = PBXGroup; - children = ( - 2DBA080D1F1FAD66001CFED4 /* Typealiases.swift */, - EE235F621C5785C600C08960 /* Constraint.swift */, - EE235F631C5785C600C08960 /* ConstraintDescription.swift */, - EE235F641C5785C600C08960 /* ConstraintInsets.swift */, - 7E1CB2AF227BBDF70066B6C0 /* ConstraintDirectionalInsets.swift */, - EE235F651C5785C600C08960 /* ConstraintConfig.swift */, - EE235F661C5785C600C08960 /* ConstraintView.swift */, - EEF68FBB1D78653000980C26 /* ConstraintLayoutGuide.swift */, - EEF68FBF1D7865AA00980C26 /* ConstraintLayoutSupport.swift */, - EE235F681C5785C600C08960 /* ConstraintRelation.swift */, - EE235F6A1C5785C600C08960 /* ConstraintAttributes.swift */, - EE235F6B1C5785C600C08960 /* ConstraintItem.swift */, - EE235F6C1C5785C600C08960 /* LayoutConstraint.swift */, - EE6898CA1DA7B3A100D47F33 /* LayoutConstraintItem.swift */, - EE6087741E4F133E0029CF84 /* ConstraintPriority.swift */, - ); - name = Models; - sourceTree = ""; - }; - EE235F5D1C5785AC00C08960 /* Debugging */ = { - isa = PBXGroup; - children = ( - EE235F5E1C5785BC00C08960 /* Debugging.swift */, - ); - name = Debugging; - sourceTree = ""; - }; - EE6DB557251D9A6B00E0C374 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - EE6DB559251D9A6B00E0C374 /* Info.plist */, - ); - path = "Supporting Files"; - sourceTree = ""; - }; - EE94F60C1AC0F113008767FF /* Frameworks */ = { - isa = PBXGroup; - children = ( - 5D64ABFF28D0878A00FFEC29 /* libswiftCoreGraphics.tbd */, - 537DCE9A1C35CD4100B5B899 /* UIKit.framework */, - EE94F60A1AC0F10F008767FF /* AppKit.framework */, - EE94F6081AC0F10A008767FF /* UIKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - EECDB35D1AC0C95C006BBC11 /* Sources */ = { - isa = PBXGroup; - children = ( - EE235F581C57858700C08960 /* Extensions */, - EE235F591C57859200C08960 /* DSLs */, - EE235F5A1C57859900C08960 /* Maker */, - EE235F5B1C57859E00C08960 /* Targets */, - EE235F5C1C5785A400C08960 /* Models */, - EE235F5D1C5785AC00C08960 /* Debugging */, - EECDB3681AC0C95C006BBC11 /* Tests */, - EEECE4BC2B4160D200738EF0 /* PrivacyInfo.xcprivacy */, - ); - path = Sources; - sourceTree = ""; - }; - EECDB3681AC0C95C006BBC11 /* Tests */ = { - isa = PBXGroup; - children = ( - EECDB3691AC0C95C006BBC11 /* Info.plist */, - EECDB36A1AC0C95C006BBC11 /* Tests.swift */, - ); - name = Tests; - path = ../Tests; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - EEBCC9D519CC627D0083B827 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - EEBCC9D719CC627D0083B827 /* SnapKit */ = { - isa = PBXNativeTarget; - buildConfigurationList = EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapKit" */; - buildPhases = ( - EEBCC9D319CC627D0083B827 /* Sources */, - EEBCC9D419CC627D0083B827 /* Frameworks */, - EEBCC9D519CC627D0083B827 /* Headers */, - EEBCC9D619CC627D0083B827 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SnapKit; - productName = SnapKit; - productReference = EEBCC9D819CC627D0083B827 /* SnapKit.framework */; - productType = "com.apple.product-type.framework"; - }; - EEBCC9E119CC627D0083B827 /* SnapKit Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapKit Tests" */; - buildPhases = ( - EEBCC9DE19CC627D0083B827 /* Sources */, - EE94F60E1AC0F136008767FF /* Frameworks */, - EEBCC9E019CC627D0083B827 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "SnapKit Tests"; - productName = SnapKitTests; - productReference = EEBCC9E219CC627E0083B827 /* SnapKit Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - DDC9FD8D1981B4DD009612C7 /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = YES; - LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 1500; - ORGANIZATIONNAME = "SnapKit Team"; - TargetAttributes = { - EEBCC9D719CC627D0083B827 = { - CreatedOnToolsVersion = 6.0; - LastSwiftMigration = 1020; - }; - EEBCC9E119CC627D0083B827 = { - CreatedOnToolsVersion = 6.0; - LastSwiftMigration = 1020; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "SnapKit" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = DDC9FD8C1981B4DD009612C7; - productRefGroup = DDC9FD961981B4DD009612C7 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - EEBCC9D719CC627D0083B827 /* SnapKit */, - EEBCC9E119CC627D0083B827 /* SnapKit Tests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - EEBCC9D619CC627D0083B827 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EEECE4BD2B4160D800738EF0 /* PrivacyInfo.xcprivacy in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EEBCC9E019CC627D0083B827 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EEECE4BE2B4160D900738EF0 /* PrivacyInfo.xcprivacy in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - EEBCC9D319CC627D0083B827 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EE235F731C5785C600C08960 /* ConstraintInsets.swift in Sources */, - EE235FAF1C5785D400C08960 /* ConstraintMakerFinalizable.swift in Sources */, - EE235F971C5785CE00C08960 /* ConstraintConstantTarget.swift in Sources */, - EE235FC81C5785E200C08960 /* ConstraintView+Extensions.swift in Sources */, - EE235FB81C5785D400C08960 /* ConstraintMakerRelatable.swift in Sources */, - EE235F851C5785C600C08960 /* ConstraintAttributes.swift in Sources */, - EE235FA01C5785CE00C08960 /* ConstraintOffsetTarget.swift in Sources */, - EEF68F9E1D78492400980C26 /* ConstraintLayoutGuideDSL.swift in Sources */, - EE235FB51C5785D400C08960 /* ConstraintMakerEditable.swift in Sources */, - EEF68FBC1D78653000980C26 /* ConstraintLayoutGuide.swift in Sources */, - EE235FAC1C5785D400C08960 /* ConstraintMaker.swift in Sources */, - 7E1CB2AE227BB5520066B6C0 /* ConstraintDirectionalInsetTarget.swift in Sources */, - EE6087751E4F133E0029CF84 /* ConstraintPriority.swift in Sources */, - EE235F941C5785CE00C08960 /* ConstraintRelatableTarget.swift in Sources */, - EEF68FA61D784A5300980C26 /* ConstraintDSL.swift in Sources */, - EE235FBB1C5785D400C08960 /* ConstraintMakerExtendable.swift in Sources */, - EE235F881C5785C600C08960 /* ConstraintItem.swift in Sources */, - 2DBA080E1F1FAD66001CFED4 /* Typealiases.swift in Sources */, - EE235F9A1C5785CE00C08960 /* ConstraintPriorityTarget.swift in Sources */, - EEF68FC01D7865AA00980C26 /* ConstraintLayoutSupport.swift in Sources */, - EEF68FB01D784FB100980C26 /* ConstraintLayoutGuide+Extensions.swift in Sources */, - EE235F761C5785C600C08960 /* ConstraintConfig.swift in Sources */, - EE235F6D1C5785C600C08960 /* Constraint.swift in Sources */, - EE235F791C5785C600C08960 /* ConstraintView.swift in Sources */, - EE6898CB1DA7B3A100D47F33 /* LayoutConstraintItem.swift in Sources */, - EE235FB21C5785D400C08960 /* ConstraintMakerPrioritizable.swift in Sources */, - EE235F8B1C5785C600C08960 /* LayoutConstraint.swift in Sources */, - 7E1CB2B0227BBDF70066B6C0 /* ConstraintDirectionalInsets.swift in Sources */, - EE235FA31C5785CE00C08960 /* ConstraintInsetTarget.swift in Sources */, - EE235F9D1C5785CE00C08960 /* ConstraintMultiplierTarget.swift in Sources */, - EE235FC01C5785DC00C08960 /* ConstraintViewDSL.swift in Sources */, - EE235F5F1C5785BC00C08960 /* Debugging.swift in Sources */, - EE235FC31C5785DC00C08960 /* ConstraintLayoutSupportDSL.swift in Sources */, - 3CA7D6C224592D4D005E10C2 /* ConstraintMakerRelatable+Extensions.swift in Sources */, - EE235F7F1C5785C600C08960 /* ConstraintRelation.swift in Sources */, - EEF68FB41D784FBA00980C26 /* UILayoutSupport+Extensions.swift in Sources */, - EE235F701C5785C600C08960 /* ConstraintDescription.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EEBCC9DE19CC627D0083B827 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - EECDB3931AC0CB52006BBC11 /* Tests.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - DDC9FDAF1981B4DD009612C7 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACOSX_DEPLOYMENT_TARGET = 10.10; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_PACKAGE_TYPE = BNDL; - SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; - TARGETED_DEVICE_FAMILY = "1,2,3,4"; - TVOS_DEPLOYMENT_TARGET = 9.0; - }; - name = Debug; - }; - DDC9FDB01981B4DD009612C7 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - MACOSX_DEPLOYMENT_TARGET = 10.10; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_BUNDLE_PACKAGE_TYPE = BNDL; - SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos"; - SWIFT_VERSION = 3.0; - TARGETED_DEVICE_FAMILY = "1,2,3,4"; - TVOS_DEPLOYMENT_TARGET = 9.0; - }; - name = Release; - }; - EEBCC9E919CC627E0083B827 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - APPLICATION_EXTENSION_API_ONLY = YES; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 1.0.0; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.13; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; - PRODUCT_BUNDLE_IDENTIFIER = "io.snapkit.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_BUNDLE_PACKAGE_TYPE = FMWK; - PRODUCT_NAME = SnapKit; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Debug; - }; - EEBCC9EA19CC627E0083B827 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - APPLICATION_EXTENSION_API_ONLY = YES; - CLANG_ENABLE_MODULES = YES; - CURRENT_PROJECT_VERSION = 1.0.0; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 12.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.13; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; - PRODUCT_BUNDLE_IDENTIFIER = "io.snapkit.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_BUNDLE_PACKAGE_TYPE = FMWK; - PRODUCT_NAME = SnapKit; - SKIP_INSTALL = YES; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - VERSIONING_SYSTEM = "apple-generic"; - }; - name = Release; - }; - EEBCC9EC19CC627E0083B827 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = "$(SRCROOT)/Tests/SnapKitTests/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - "@loader_path/../Frameworks", - "@executable_path/../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.11; - PRODUCT_BUNDLE_IDENTIFIER = "io.snapkit.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 4.2; - }; - name = Debug; - }; - EEBCC9ED19CC627E0083B827 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - DEVELOPMENT_TEAM = ""; - INFOPLIST_FILE = "$(SRCROOT)/Tests/SnapKitTests/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - "@loader_path/Frameworks", - "@loader_path/../Frameworks", - "@executable_path/../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.11; - PRODUCT_BUNDLE_IDENTIFIER = "io.snapkit.$(PRODUCT_NAME:rfc1034identifier)"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 4.2; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "SnapKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - DDC9FDAF1981B4DD009612C7 /* Debug */, - DDC9FDB01981B4DD009612C7 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EEBCC9E919CC627E0083B827 /* Debug */, - EEBCC9EA19CC627E0083B827 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - EEBCC9EB19CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapKit Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EEBCC9EC19CC627E0083B827 /* Debug */, - EEBCC9ED19CC627E0083B827 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = DDC9FD8D1981B4DD009612C7 /* Project object */; -} diff --git a/SnapKit.xcodeproj/xcshareddata/xcschemes/SnapKit.xcscheme b/SnapKit.xcodeproj/xcshareddata/xcschemes/SnapKit.xcscheme deleted file mode 100644 index cbf0879d..00000000 --- a/SnapKit.xcodeproj/xcshareddata/xcschemes/SnapKit.xcscheme +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SnapKit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SnapKit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/SnapKit.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/SnapKit.xcworkspace/xcshareddata/SnapKit.xccheckout b/SnapKit.xcworkspace/xcshareddata/SnapKit.xccheckout deleted file mode 100644 index ffcc9ed2..00000000 --- a/SnapKit.xcworkspace/xcshareddata/SnapKit.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - A9120727-7306-4189-ADAA-9CB826A3713C - IDESourceControlProjectName - SnapKit - IDESourceControlProjectOriginsDictionary - - 3AF18F9C6F5D633BAA0B3F935459E0C777C82047 - github.com:Masonry/Snap.git - - IDESourceControlProjectPath - SnapKit.xcworkspace - IDESourceControlProjectRelativeInstallPathDictionary - - 3AF18F9C6F5D633BAA0B3F935459E0C777C82047 - .. - - IDESourceControlProjectURL - github.com:Masonry/Snap.git - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - 3AF18F9C6F5D633BAA0B3F935459E0C777C82047 - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 3AF18F9C6F5D633BAA0B3F935459E0C777C82047 - IDESourceControlWCCName - SnapKit - - - - diff --git a/SnapKitPlayground.playground/Contents.swift b/SnapKitPlayground.playground/Contents.swift deleted file mode 100644 index d84900a5..00000000 --- a/SnapKitPlayground.playground/Contents.swift +++ /dev/null @@ -1,29 +0,0 @@ -//: A UIKit based Playground for presenting user interface -// To use this playground, build SnapKit.framework for any simulator first. - -import SnapKit -import UIKit -import PlaygroundSupport - -class MyViewController : UIViewController { - override func loadView() { - let view = UIView() - view.backgroundColor = .white - - let label = UILabel() - label.text = "Hello World!" - label.textColor = .black - - view.addSubview(label) - - label.snp.makeConstraints { (make) in - make.left.equalToSuperview().offset(150) - make.top.equalToSuperview().offset(200) - make.size.equalTo(CGSize(width: 200, height: 20)) - } - - self.view = view - } -} -// Present the view controller in the Live View window -PlaygroundPage.current.liveView = MyViewController() diff --git a/SnapKitPlayground.playground/contents.xcplayground b/SnapKitPlayground.playground/contents.xcplayground deleted file mode 100644 index 3b151081..00000000 --- a/SnapKitPlayground.playground/contents.xcplayground +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/SnapKitPlayground.playground/playground.xcworkspace/contents.xcworkspacedata b/SnapKitPlayground.playground/playground.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 94b2795e..00000000 --- a/SnapKitPlayground.playground/playground.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/SnapKitPlayground.playground/timeline.xctimeline b/SnapKitPlayground.playground/timeline.xctimeline deleted file mode 100644 index bf468afe..00000000 --- a/SnapKitPlayground.playground/timeline.xctimeline +++ /dev/null @@ -1,6 +0,0 @@ - - - - - From 250529bec615066185ff328984855101820fcbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=95=9C=EC=97=B4=20Hanyeol=20Kim?= <63261054+OneTen19@users.noreply.github.com> Date: Mon, 13 Jul 2026 19:50:19 +0900 Subject: [PATCH 3/3] Remove explicit 'make' label from constraint closures (#837) --- Sources/ConstraintLayoutGuideDSL.swift | 8 ++++---- Sources/ConstraintMaker.swift | 8 ++++---- Sources/ConstraintViewDSL.swift | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Sources/ConstraintLayoutGuideDSL.swift b/Sources/ConstraintLayoutGuideDSL.swift index 7e78261e..fcc02d2e 100644 --- a/Sources/ConstraintLayoutGuideDSL.swift +++ b/Sources/ConstraintLayoutGuideDSL.swift @@ -32,19 +32,19 @@ public struct ConstraintLayoutGuideDSL: ConstraintAttributesDSL { @discardableResult - public func prepareConstraints(_ closure: (_ make: ConstraintMaker) -> Void) -> [Constraint] { + public func prepareConstraints(_ closure: (ConstraintMaker) -> Void) -> [Constraint] { return ConstraintMaker.prepareConstraints(item: self.guide, closure: closure) } - public func makeConstraints(_ closure: (_ make: ConstraintMaker) -> Void) { + public func makeConstraints(_ closure: (ConstraintMaker) -> Void) { ConstraintMaker.makeConstraints(item: self.guide, closure: closure) } - public func remakeConstraints(_ closure: (_ make: ConstraintMaker) -> Void) { + public func remakeConstraints(_ closure: (ConstraintMaker) -> Void) { ConstraintMaker.remakeConstraints(item: self.guide, closure: closure) } - public func updateConstraints(_ closure: (_ make: ConstraintMaker) -> Void) { + public func updateConstraints(_ closure: (ConstraintMaker) -> Void) { ConstraintMaker.updateConstraints(item: self.guide, closure: closure) } diff --git a/Sources/ConstraintMaker.swift b/Sources/ConstraintMaker.swift index 7c352f64..b3737583 100644 --- a/Sources/ConstraintMaker.swift +++ b/Sources/ConstraintMaker.swift @@ -177,7 +177,7 @@ public class ConstraintMaker { return ConstraintMakerExtendable(description) } - internal static func prepareConstraints(item: LayoutConstraintItem, closure: (_ make: ConstraintMaker) -> Void) -> [Constraint] { + internal static func prepareConstraints(item: LayoutConstraintItem, closure: (ConstraintMaker) -> Void) -> [Constraint] { let maker = ConstraintMaker(item: item) closure(maker) var constraints: [Constraint] = [] @@ -190,19 +190,19 @@ public class ConstraintMaker { return constraints } - internal static func makeConstraints(item: LayoutConstraintItem, closure: (_ make: ConstraintMaker) -> Void) { + internal static func makeConstraints(item: LayoutConstraintItem, closure: (ConstraintMaker) -> Void) { let constraints = prepareConstraints(item: item, closure: closure) for constraint in constraints { constraint.activateIfNeeded(updatingExisting: false) } } - internal static func remakeConstraints(item: LayoutConstraintItem, closure: (_ make: ConstraintMaker) -> Void) { + internal static func remakeConstraints(item: LayoutConstraintItem, closure: (ConstraintMaker) -> Void) { self.removeConstraints(item: item) self.makeConstraints(item: item, closure: closure) } - internal static func updateConstraints(item: LayoutConstraintItem, closure: (_ make: ConstraintMaker) -> Void) { + internal static func updateConstraints(item: LayoutConstraintItem, closure: (ConstraintMaker) -> Void) { guard item.constraints.count > 0 else { self.makeConstraints(item: item, closure: closure) return diff --git a/Sources/ConstraintViewDSL.swift b/Sources/ConstraintViewDSL.swift index 8567e547..83a11974 100644 --- a/Sources/ConstraintViewDSL.swift +++ b/Sources/ConstraintViewDSL.swift @@ -31,19 +31,19 @@ public struct ConstraintViewDSL: ConstraintAttributesDSL { @discardableResult - public func prepareConstraints(_ closure: (_ make: ConstraintMaker) -> Void) -> [Constraint] { + public func prepareConstraints(_ closure: (ConstraintMaker) -> Void) -> [Constraint] { return ConstraintMaker.prepareConstraints(item: self.view, closure: closure) } - public func makeConstraints(_ closure: (_ make: ConstraintMaker) -> Void) { + public func makeConstraints(_ closure: (ConstraintMaker) -> Void) { ConstraintMaker.makeConstraints(item: self.view, closure: closure) } - public func remakeConstraints(_ closure: (_ make: ConstraintMaker) -> Void) { + public func remakeConstraints(_ closure: (ConstraintMaker) -> Void) { ConstraintMaker.remakeConstraints(item: self.view, closure: closure) } - public func updateConstraints(_ closure: (_ make: ConstraintMaker) -> Void) { + public func updateConstraints(_ closure: (ConstraintMaker) -> Void) { ConstraintMaker.updateConstraints(item: self.view, closure: closure) }