EmergeTools / Pow

Delightful SwiftUI effects for your app
https://movingparts.io/pow
MIT License
3.64k stars 153 forks source link

Fix compilation for visionOS #44

Closed vmanot closed 11 months ago

vmanot commented 11 months ago

This PR fixes #45 by updating the compiler control statements to add the missing os(visionOS) platform condition check.

The project now builds for visionOS, but with warnings as it is built against the latest version of SwiftUI which deprecates View.onChange(of:perform:) in favor of View.onChange(of:initial:_:).

I can tackle the warnings in another PR, I'd still love to get this in if possible because compilation on visionOS is broken at the moment.

mergesort commented 11 months ago

Thank you so much @vmanot!