Skip to content

Commit

Permalink
Merge branch 'release/0.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kofktu committed Dec 20, 2021
2 parents c97f755 + 3828718 commit 7829684
Show file tree
Hide file tree
Showing 17 changed files with 429 additions and 321 deletions.
2 changes: 1 addition & 1 deletion Example/Example/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class PIPXibViewController: UIViewController, PIPUsable {
@IBAction private func onUpdatePIPSize(_ sender: UIButton) {
pipSize = CGSize(width: 100 + Int(arc4random_uniform(100)),
height: 100 + Int(arc4random_uniform(100)))
setNeedUpdatePIPSize()
setNeedsUpdatePIPFrame()
}

@IBAction private func onDismiss(_ sender: UIButton) {
Expand Down
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.

2 changes: 1 addition & 1 deletion PIPKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'PIPKit'
s.version = '0.2.0'
s.version = '0.5.0'
s.summary = 'PIP(Picture in Picture) for iOS'

# This description is used to generate tags and improve search results.
Expand Down
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

0 comments on commit 7829684

Please sign in to comment.