From b72c63c783fb1655513ba55fb4496cb2ce2ab12e Mon Sep 17 00:00:00 2001 From: Steven Grosmark Date: Mon, 28 Jan 2019 14:47:08 -0500 Subject: [PATCH 1/4] Fix warnings about redundant access levels --- Sources/WWLayout/Insets.swift | 4 ++-- Sources/WWLayout/Layout+Size.swift | 2 +- Sources/WWLayout/LayoutRelation.swift | 2 +- Sources/WWLayout/UIView+Layout.swift | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/WWLayout/Insets.swift b/Sources/WWLayout/Insets.swift index d471d77..f74755d 100644 --- a/Sources/WWLayout/Insets.swift +++ b/Sources/WWLayout/Insets.swift @@ -48,11 +48,11 @@ public struct Insets { } } -public extension Insets { +extension Insets { public static let zero = Insets(0) } -public extension Insets { +extension Insets { /// Set all edges of the inset to the same amount. public init(_ allEdgesAmount: CGFloat) { diff --git a/Sources/WWLayout/Layout+Size.swift b/Sources/WWLayout/Layout+Size.swift index 7916107..9713a96 100644 --- a/Sources/WWLayout/Layout+Size.swift +++ b/Sources/WWLayout/Layout+Size.swift @@ -30,7 +30,7 @@ import UIKit -public extension Layout { +extension Layout { //size(80) // size(80, 200) diff --git a/Sources/WWLayout/LayoutRelation.swift b/Sources/WWLayout/LayoutRelation.swift index 32e8acc..8d5ab00 100644 --- a/Sources/WWLayout/LayoutRelation.swift +++ b/Sources/WWLayout/LayoutRelation.swift @@ -39,7 +39,7 @@ public enum LayoutRelation { // MARK: - constraint creation helpers -internal extension LayoutRelation { +extension LayoutRelation { /// Get the corresponding NSLayoutRelation internal var nsRelation: LayoutConstraint.Relation { diff --git a/Sources/WWLayout/UIView+Layout.swift b/Sources/WWLayout/UIView+Layout.swift index e573eae..9d91c87 100644 --- a/Sources/WWLayout/UIView+Layout.swift +++ b/Sources/WWLayout/UIView+Layout.swift @@ -30,7 +30,7 @@ import UIKit -public extension UIView { +extension UIView { /// Access to auto layout constrains for the view public var layout: Layout { return Layout(self) } From 5d83f426c0d07f2f622fcb1ba7500ea1931ffd6f Mon Sep 17 00:00:00 2001 From: Steven Grosmark Date: Mon, 28 Jan 2019 14:47:41 -0500 Subject: [PATCH 2/4] Set last swift migration check to Xcode 10.2 --- WWLayout.xcodeproj/project.pbxproj | 4 ++-- WWLayoutExample/WWLayoutExample.xcodeproj/project.pbxproj | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WWLayout.xcodeproj/project.pbxproj b/WWLayout.xcodeproj/project.pbxproj index f76165d..ee6e0d8 100644 --- a/WWLayout.xcodeproj/project.pbxproj +++ b/WWLayout.xcodeproj/project.pbxproj @@ -213,12 +213,12 @@ TargetAttributes = { 798F251F1FD18FA4006E6A44 = { CreatedOnToolsVersion = 9.1; - LastSwiftMigration = 1010; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; 798F25281FD18FA4006E6A44 = { CreatedOnToolsVersion = 9.1; - LastSwiftMigration = 1010; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; }; diff --git a/WWLayoutExample/WWLayoutExample.xcodeproj/project.pbxproj b/WWLayoutExample/WWLayoutExample.xcodeproj/project.pbxproj index d5b0dea..3e8b3a3 100644 --- a/WWLayoutExample/WWLayoutExample.xcodeproj/project.pbxproj +++ b/WWLayoutExample/WWLayoutExample.xcodeproj/project.pbxproj @@ -257,18 +257,18 @@ TargetAttributes = { 798F25501FD190AB006E6A44 = { CreatedOnToolsVersion = 9.1; - LastSwiftMigration = 1010; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; }; 798F25641FD190AB006E6A44 = { CreatedOnToolsVersion = 9.1; - LastSwiftMigration = 1010; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; TestTargetID = 798F25501FD190AB006E6A44; }; 798F256F1FD190AB006E6A44 = { CreatedOnToolsVersion = 9.1; - LastSwiftMigration = 1010; + LastSwiftMigration = 1020; ProvisioningStyle = Automatic; TestTargetID = 798F25501FD190AB006E6A44; }; From 7d54b0c58afe71a0cdaa252f7f87b1c3c4687716 Mon Sep 17 00:00:00 2001 From: Paul Newman Date: Tue, 12 Feb 2019 13:25:44 -0500 Subject: [PATCH 3/4] Update Copyright statement --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 261eeb9..f7f1cd5 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2019 WW International Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From 81f8cfed1e95762ec0efb58fe7c4af0ca272f8ce Mon Sep 17 00:00:00 2001 From: Steven Grosmark Date: Fri, 29 Mar 2019 15:59:46 -0400 Subject: [PATCH 4/4] Update podspec --- WWLayout.podspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WWLayout.podspec b/WWLayout.podspec index c1fed67..9397b76 100644 --- a/WWLayout.podspec +++ b/WWLayout.podspec @@ -9,10 +9,10 @@ Pod::Spec.new do |s| s.name = "WWLayout" - s.version = "0.5.0" - s.summary = "An easy way to add layout constraints" - s.description = "WWLayout is an easy way to add layout constraints with code." - s.homepage = "https://github.com/ww-tech/wwlayout" + s.version = "0.5.5" + s.summary = "Swifty DSL for programmatic Auto Layout in iOS" + s.description = "WWLayout is an elegant way to add auto-layout constraints with code." + s.homepage = "https://ww-tech.github.io/wwlayout/" s.license = "Apache-2.0" s.author = { "Steven Grosmark" => "steven.grosmark@weightwatchers.com" }