In iOS 14, not sure about iOS 13, Apple's Music app has a 'more' button on the player view above the scrubber. Tapping it appears to present a UIActivityViewController.
This UIActivityVC appears to use a configuration that excludes the UIActivityCategory.share category, so we only see actions. One of those actions is labeled "Share". Tapping it appears to reconfigure the UIActivityVC so that it no longer excludes the UIActivityCategory.share category and also hides the "Share" action. The change happens with a smooth animation and does not appear to be the result of dismissing the current UIActivityVC and presenting a new, reconfigured one.
I'm not seeing a way to replicate this. I don't believe I've ever seen this in a 3rd party app, but Apple uses it at least in the Music and Podcasts app. So, perhaps it's just Apple using private APIs.
Is this a documented behavior of UIActivityViewController?
This UIActivityVC appears to use a configuration that excludes the UIActivityCategory.share category, so we only see actions. One of those actions is labeled "Share". Tapping it appears to reconfigure the UIActivityVC so that it no longer excludes the UIActivityCategory.share category and also hides the "Share" action. The change happens with a smooth animation and does not appear to be the result of dismissing the current UIActivityVC and presenting a new, reconfigured one.
I'm not seeing a way to replicate this. I don't believe I've ever seen this in a 3rd party app, but Apple uses it at least in the Music and Podcasts app. So, perhaps it's just Apple using private APIs.
Is this a documented behavior of UIActivityViewController?