Skip to content

Problem after dismiss view controller #2

@hhernany

Description

@hhernany

After opening a viewController using the .vertical (or any other) type, the viewController is presented normally, without problems. However, the problem occurs after dismissing the presented viewController.

The collectionView of the first viewController "loses its position", and the entire app is positioned slightly higher.

In addition the statusBar becomes transparent, and the collectionView starts to appear behind it.

1) In this moment, everything is fine

Simulator Screen Shot - iPhone 6 - 2019-12-27 at 11 53 40

2) Now, the viewController controller is open

Simulator Screen Shot - iPhone 6 - 2019-12-27 at 11 53 57

3) Now after dimiss, the top of collectionView is a little higher.

Simulator Screen Shot - iPhone 6 - 2019-12-27 at 11 54 07

4) And, if a i scroll the collectionView, this happen.

Simulator Screen Shot - iPhone 6 - 2019-12-27 at 11 54 21

I am presenting the viewController like this

           let detailViewController = ScrollFadeViewController()

            configurator.dragDownEnabled = true
            configurator.dragLateralEnabled = false

            let transition = CiaoTransition(style: .vertical, configurator: configurator)

            detailViewController.ciaoTransition = transition 
            detailViewController.transitioningDelegate = transition 
            detailViewController.modalPresentationCapturesStatusBarAppearance = false
            detailViewController.modalPresentationStyle = .fullScreen
            detailViewController.hidesBottomBarWhenPushed = true

            navigationController?.delegate = transition
            present(detailViewController, animated: true, completion: nil)

And im my initial viewController, i configurate the collectionView like this:

        feedCollectionView.delaysContentTouches = false
        feedCollectionView.dataSource = self
        feedCollectionView.delegate = self
        feedCollectionView.clipsToBounds = false
        feedCollectionView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 20, right: 0)
        feedCollectionView.contentInsetAdjustmentBehavior = .never

Thanks in advance for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions