From 4f5ff1150d78999c2d4352278ef654865f82d361 Mon Sep 17 00:00:00 2001 From: Wei Date: Fri, 7 Oct 2022 17:19:17 +0800 Subject: [PATCH 1/2] [Add] Package.swift --- .../contents.xcworkspacedata | 7 +++++++ Package.swift | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata create mode 100644 Package.swift diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..e8b1220 --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ +// swift-tools-version: 5.7 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "TagCellLayout", + platforms: [ + .iOS(.v11) + ], + products: [ + .library(name: "TagCellLayout", targets: ["TagCellLayout"]) + ], + targets: [ + .target( + name: "TagCellLayout", + path: "Source" + ) + ] +) From 3c3b4d1e21aa4c9112ab82c01ca41a89f3acfd3e Mon Sep 17 00:00:00 2001 From: Wei Date: Fri, 7 Oct 2022 17:19:34 +0800 Subject: [PATCH 2/2] [Fix] public modifier is redundant for enum declared in a public extension --- Source/LayoutAlignment.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/LayoutAlignment.swift b/Source/LayoutAlignment.swift index 7e83f27..228d797 100644 --- a/Source/LayoutAlignment.swift +++ b/Source/LayoutAlignment.swift @@ -11,7 +11,7 @@ import UIKit public extension TagCellLayout { - public enum LayoutAlignment: Int { + enum LayoutAlignment: Int { case left case center