ConfettiSwiftUI icon indicating copy to clipboard operation
ConfettiSwiftUI copied to clipboard

SPM Fails to build for watchOS. Have requested a PR with fix.

Open zeyrie opened this issue 1 year ago • 0 comments

Expected Behaviour

When building for watchOS targets, it is expected for the project to build successfully as it supports watch target. Also the haptics feedback for the watch seems not present.

Actual Behaviour

Currently due to exclusion of watchOS in platform check for Haptics impact generator, the SPM doesn't build for watchOS as UIImpactFeedbackGenerator is not available for watchOS target. Also it is expected for the haptics to work in watch as confetti animates, which seems not to be the case.

Steps to Reproduce the Issue

  • Build the SPM for watchOS target.
  • Run confetti animation in physical watch, and no haptics is played while confetti animates.

I have fixed this issue and have opened a Pull Request

zeyrie avatar Jul 31 '25 03:07 zeyrie