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

Update topViewController to handle UITabBarController #804

Closed
wants to merge 1 commit into from
Closed

Update topViewController to handle UITabBarController #804

wants to merge 1 commit into from

Conversation

SBourgon
Copy link

(I did check to see about merging against dev, but there is no dev branch currently)

What does this PR do?
Updated seg_topViewController:(UIViewController *) rootViewController to handle the case where the root view controller is a UITabBarController and not only a UINavigationController.

Where should the reviewer start?
Auto-tracked events are on with UITabBarController as rootViewController

How should this be manually tested?

Any background context you want to provide?
As our rootViewController was a subclass UITabBarController every auto-tracked event came back as Optimity.Main (for MainViewController.swift)

What are the relevant tickets?

Updated seg_topViewController:(UIViewController *) rootViewController to handle the case where the root view controller is a UITabBarController and not necessarily a UINavigationController. As our rootViewController was a subclass UITabBarController every auto-tracked event came back as Optimity.Main (for MainViewController)
@f2prateek
Copy link
Contributor

hey @SBourgon thanks! could you add a test case?

@bsneed
Copy link
Contributor

bsneed commented Jun 17, 2020

cc @migs647

@migs647
Copy link
Contributor

migs647 commented Jun 17, 2020

This was indirectly fixed with PR: #899

@migs647 migs647 closed this Jun 17, 2020
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.

4 participants