PostHog / posthog-ios

PostHog iOS SDK
https://posthog.com/docs/libraries/ios
MIT License
32 stars 41 forks source link

Support for auto capture selected controller of UITabbarController #46

Closed viktoricaloniapoplar closed 6 months ago

viktoricaloniapoplar commented 1 year ago

It seems that capturing screen of selected controller in UITabbarController is not triggering. Do i have to capture them manually?

viktoricaloniapoplar commented 1 year ago

nvm, as i have checked it is triggered.

viktoricaloniapoplar commented 1 year ago

As i have checked it will just capture screen name as UITabbarController not the selected viewcontroller of tabbarcontroller

marandaneto commented 10 months ago

@viktoricaloniapoplar can you provide a MRE? The Swizzling algo probably only detects the controllers but not tabs.

marandaneto commented 6 months ago

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!

viktoricaloniapoplar commented 6 months ago

IMO, we should support capture of selected tabbar controller. It would help a lot for apps that has tabbarcontroller as root view controller.