We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3f9975 commit 79666d4Copy full SHA for 79666d4
Sources/ConfettiSwiftUI.swift
@@ -139,7 +139,7 @@ public struct ConfettiCannon<T: Equatable>: View {
139
for i in 0..<confettiConfig.repetitions{
140
DispatchQueue.main.asyncAfter(deadline: .now() + confettiConfig.repetitionInterval * Double(i)) {
141
animate.append(false)
142
-#if canImport(UIKit) && !os(tvOS)
+#if canImport(UIKit) && !os(tvOS) && !os(visionOS)
143
if confettiConfig.hapticFeedback {
144
let impactFeedback = UIImpactFeedbackGenerator(style: .heavy)
145
impactFeedback.impactOccurred()
0 commit comments