Skip to content

Commit

Permalink
refactor(GiniCaptureSDK): Cleanup code
Browse files Browse the repository at this point in the history
PP-353
  • Loading branch information
ValentinaIancu-Gini committed Apr 11, 2024
1 parent e39e1cc commit 49b9725
Showing 1 changed file with 7 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ open class GiniScreenAPICoordinator: NSObject, Coordinator {
super.init()
}

public func start(
withDocuments documents: [GiniCaptureDocument]?,
animated: Bool = false
) -> UIViewController {
public func start(withDocuments documents: [GiniCaptureDocument]?,
animated: Bool = false) -> UIViewController {
var viewControllers: [UIViewController] = []

if let documents = documents, !documents.isEmpty {
Expand Down Expand Up @@ -142,8 +140,7 @@ open class GiniScreenAPICoordinator: NSObject, Coordinator {
}

if pages.type == .image {
reviewViewController =
createReviewScreenContainer(with: pages)
reviewViewController = createReviewScreenContainer(with: pages)

return [reviewViewController]
} else {
Expand Down Expand Up @@ -292,11 +289,10 @@ extension GiniScreenAPICoordinator {
// MARK: - Navigation delegate

extension GiniScreenAPICoordinator: UINavigationControllerDelegate {
public func navigationController(
_ navigationController: UINavigationController,
animationControllerFor operation: UINavigationController.Operation,
from fromVC: UIViewController,
to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
public func navigationController(_ navigationController: UINavigationController,
animationControllerFor operation: UINavigationController.Operation,
from fromVC: UIViewController,
to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
if fromVC is AnalysisViewController {
analysisViewController = nil
if operation == .pop {
Expand Down

0 comments on commit 49b9725

Please sign in to comment.