getsidetrack / swiftui-pipify

A SwiftUI component for launching custom picture-in-picture experiences
MIT License
155 stars 14 forks source link

pipShowOnBackground / pipHideOnForeground #31

Open rafaelnobrekz opened 5 months ago

rafaelnobrekz commented 5 months ago

I've seen those modifiers in the implementation but it doesn't seem to work, is it supposed to ? BTW is the lib even feasible to use nowadays, or is Apple actively rejecting all attempts to ?

Sherlouk commented 5 months ago

The modifiers did at time of release work, but unfortunately I do not have any active plans to continue maintaining this project due to the amount of rejections faced when releasing this with Apple.

They've let some apps through with it, and rejected many others. It appears to be based on how prominent and obvious the feature is and simply whether the review team spot it. If you don't launch with the feature, and it's not mega obvious, then it's more likely you'll slip it by review - though not how I'd like to run an app 😅

rafaelnobrekz commented 5 months ago

The use case would be an audio call where users can send reactions, so there is constant sound streaming and we would show regular interaction updates over PIP. But ideally we want PIP only in the background, as we have a more capable window widget in the foreground. Not sure how much of an stretch that would be, and if it would work to have it toggled based on background state