From 53a071da84e69f21e296b7c43378f7b90c8da423 Mon Sep 17 00:00:00 2001 From: Econa77 Date: Wed, 18 Oct 2023 15:45:38 +0900 Subject: [PATCH] Fix compilation for visionOS --- Sources/Refresher/Refresher.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Refresher/Refresher.swift b/Sources/Refresher/Refresher.swift index 096f658..ecd6613 100644 --- a/Sources/Refresher/Refresher.swift +++ b/Sources/Refresher/Refresher.swift @@ -257,7 +257,9 @@ public struct RefreshableScrollView: View { isRefresherVisible = true if distance >= config.refreshAt, !renderLock { + #if !os(visionOS) UIImpactFeedbackGenerator(style: .medium).impactOccurred() + #endif renderLock = true canRefresh = false set(mode: .refreshing)