Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Calls viewDidLoad again when dismissed if base navigation controller is presented by a tab bar #199

@tesddev

Description

@tesddev

Description

When the navigation stack is originally presented by or from a tab bar, dismissing the panModal page calls the viewDidLoad again, rather than just the viewWillAppear and viewDidAppear alone.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

PanModal version: 1.2.7

iOS version: 11.0

Steps to reproduce:

  1. Create a tab bar with at least 2 view controllers
  2. Present pan modal from one of the screens
  3. Put breakpoints in the viewdidLoad and viewWillAppear

Expected result:

It is expected to call only viewDIdAppear and viewWillAppear

Actual result:

It calls viewWillAppear and viewDidAppear, as well as viewDidLoad. ViewDidLoad should not be called.

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions