Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add completion block for push support #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tospery
Copy link

@tospery tospery commented Sep 16, 2019

Use this callback for the RxSwift's complete event

@codecov
Copy link

codecov bot commented Sep 16, 2019

Codecov Report

Merging #132 into master will increase coverage by 0.5%.
The diff coverage is 80%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #132     +/-   ##
=========================================
+ Coverage   82.82%   83.33%   +0.5%     
=========================================
  Files           4        4             
  Lines          99      102      +3     
=========================================
+ Hits           82       85      +3     
  Misses         17       17
Impacted Files Coverage Δ
Sources/URLNavigator/NavigatorType.swift 90.9% <80%> (+0.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b7d28f8...cf3ff42. Read the comment docs.

guard (viewController is UINavigationController) == false else { return nil }
guard let navigationController = from ?? UIViewController.topMost?.navigationController else { return nil }
guard self.delegate?.shouldPush(viewController: viewController, from: navigationController) != false else { return nil }
CATransaction.begin()
CATransaction.setCompletionBlock(completion)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this trick safe?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's safe, i reference from SwifterSwift library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants