Skip to content

Commit

Permalink
Release 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Nov 5, 2019
1 parent 9518669 commit 2dfd295
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 28 deletions.
8 changes: 4 additions & 4 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Masonry (1.1.0)
- SJFullscreenPopGesture/Swift (1.5.2)
- SJFullscreenPopGesture/Swift (1.5.3)
- SJScrollEntriesView (1.1.0):
- Masonry
- SJTransitionAnimator (1.0.2)
Expand All @@ -16,7 +16,7 @@ DEPENDENCIES:
- SJUIFactory

SPEC REPOS:
https://github.com/cocoapods/specs.git:
https://github.com/CocoaPods/Specs.git:
- Masonry
- SJScrollEntriesView
- SJTransitionAnimator
Expand All @@ -28,11 +28,11 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
SJFullscreenPopGesture: a22be80f7c981eed8443065ddaccebd927252efd
SJFullscreenPopGesture: d4994917bc900e79cd686970866834b4c5883565
SJScrollEntriesView: 2388fec9dbb6ab639f8966de036394eeb753617d
SJTransitionAnimator: 531f43f1bf883e210f7392da79fab4d39753eec1
SJUIFactory: b3e973c5e2ae08bc5a1bd2c68d94c00f81e01a0b

PODFILE CHECKSUM: 67961dacee303341e8b9fdf45c0026db2aafc22c

COCOAPODS: 1.7.5
COCOAPODS: 1.8.4

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

8 changes: 4 additions & 4 deletions Example/Pods/Manifest.lock

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.

1 change: 1 addition & 0 deletions Example/Pods/Target Support Files/Masonry/Masonry.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.

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.

Binary file not shown.
2 changes: 1 addition & 1 deletion SJFullscreenPopGesture.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = "SJFullscreenPopGesture"
s.version = "1.5.2"
s.version = "1.5.3"
s.summary = "fullscreen pop gestures."
s.description = 'https://github.com/changsanjiang/SJFullscreenPopGesture/blob/master/README.md'

Expand Down
3 changes: 2 additions & 1 deletion SJFullscreenPopGesture/ObjC/SJFullscreenPopGesture.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ - (instancetype)initWithTarget:(UIViewController *)target {
// snapshot
switch ( target.sj_displayMode ) {
case SJPreViewDisplayModeSnapshot: {
UIView *snapshot = [nav.view.superview snapshotViewAfterScreenUpdates:NO];
UIView *superview = nav.tabBarController != nil ? nav.tabBarController.view : nav.view;
UIView *snapshot = [superview snapshotViewAfterScreenUpdates:NO];
[_rootView addSubview:snapshot];
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,10 @@ fileprivate class SJSnapshot {
switch target.sj_displayMode {
case .snapshot:
// snapshaot
if let snapshot = nav.view.superview?.snapshotView(afterScreenUpdates: false) {
rootView.addSubview(snapshot)
if let superview = nav.tabBarController != nil ? nav.tabBarController?.view : nav.view.superview {
if let snapshot = superview.snapshotView(afterScreenUpdates: false) {
rootView.addSubview(snapshot)
}
}
case .origin:
// nav bar snapshot
Expand Down

0 comments on commit 2dfd295

Please sign in to comment.