Skip to content

Commit

Permalink
#18 - 'PIPCorner' initializer is inaccessible due to 'internal' prote…
Browse files Browse the repository at this point in the history
…ction level
  • Loading branch information
Kofktu committed Dec 20, 2021
1 parent abd9c24 commit a8bf4cd
Show file tree
Hide file tree
Showing 12 changed files with 362 additions and 294 deletions.
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- PIPKit (0.1.0)
- PIPKit (0.2.0)

DEPENDENCIES:
- PIPKit (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
PIPKit: dadaf2e0bde84dd33fe80e60574f34c8d96ce331
PIPKit: 00fd62aa4967f9cef1eca1a5587d3192c23881e1

PODFILE CHECKSUM: c08b7c7c692e22463a8585bf1d49708f9b5678bc

COCOAPODS: 1.7.5
COCOAPODS: 1.11.2
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/PIPKit.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

485 changes: 244 additions & 241 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Example/Pods/Target Support Files/PIPKit/PIPKit-Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Example/Pods/Target Support Files/PIPKit/PIPKit.debug.xcconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions Example/Pods/Target Support Files/PIPKit/PIPKit.release.xcconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions PIPKit/Classes/PIPKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@ public struct PIPShadow {
public let opacity: Float
public let offset: CGSize
public let radius: CGFloat

public init(color: UIColor,
opacity: Float,
offset: CGSize,
radius: CGFloat) {
self.color = color
self.opacity = opacity
self.offset = offset
self.radius = radius
}
}

public struct PIPCorner {
public let radius: CGFloat
public let curve: CALayerCornerCurve?

public init(radius: CGFloat,
curve: CALayerCornerCurve? = nil) {
self.radius = radius
self.curve = curve
}
}

public enum PIPState {
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription
let package = Package(
name: "PIPKit",
platforms: [
.macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v2)
.iOS(.v8)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand All @@ -16,4 +16,4 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(name: "PIPKit", path: "PIPKit/Classes")
]
)
)

0 comments on commit a8bf4cd

Please sign in to comment.