getsidetrack / swiftui-pipify

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

Add Error for Unsupported Device #22

Open Sherlouk opened 2 years ago

Sherlouk commented 2 years ago

Currently we do not enforce the isSupported check - it would be logical to move this up into the PipifyModifier so we're not adding extra load onto unsupported devices.

We should also make sure we're adding a log message (warning) so developers are aware of this.

Notably, this will detect simulators which causes some weird edge cases at the moment.