diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..d530f01 --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ +// swift-tools-version: 5.5 + +import PackageDescription + +let package = Package( + name: "SmoothRoundedRectangle", + platforms: [ + .iOS(.v13), + .macOS(.v10_15), + .tvOS(.v13), + .watchOS(.v6), + ], + products: [ + .library(name: "SmoothRoundedRectangle", targets: ["SmoothRoundedRectangle"]), + ], + dependencies: [], + targets: [ + .target(name: "SmoothRoundedRectangle", path: "src"), + ] +) diff --git a/src/SmoothRoundedRectangle+Attributes.swift b/src/SmoothRoundedRectangle+Attributes.swift index 5e94aff..ee587a6 100644 --- a/src/SmoothRoundedRectangle+Attributes.swift +++ b/src/SmoothRoundedRectangle+Attributes.swift @@ -23,15 +23,15 @@ public extension SmoothRoundedRectangle { self.rawValue = rawValue } - static let topLeft = Corners(rawValue: 1 << 0) - static let topRight = Corners(rawValue: 1 << 1) - static let bottomLeft = Corners(rawValue: 1 << 2) - static let bottomRight = Corners(rawValue: 1 << 3) + public static let topLeft = Corners(rawValue: 1 << 0) + public static let topRight = Corners(rawValue: 1 << 1) + public static let bottomLeft = Corners(rawValue: 1 << 2) + public static let bottomRight = Corners(rawValue: 1 << 3) - static let all: Corners = [.topLeft, .topRight, .bottomLeft, .bottomRight] - static let top: Corners = [.topLeft, .topRight] - static let bottom: Corners = [.bottomLeft, .bottomRight] - static let left: Corners = [.topLeft, .bottomLeft] - static let right: Corners = [.topRight, .bottomRight] + public static let all: Corners = [.topLeft, .topRight, .bottomLeft, .bottomRight] + public static let top: Corners = [.topLeft, .topRight] + public static let bottom: Corners = [.bottomLeft, .bottomRight] + public static let left: Corners = [.topLeft, .bottomLeft] + public static let right: Corners = [.topRight, .bottomRight] } }