Skip to content

Commit 53a071d

Browse files
committed
Fix compilation for visionOS
1 parent 78fd130 commit 53a071d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Refresher/Refresher.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ public struct RefreshableScrollView<Content: View, RefreshView: View>: View {
257257
isRefresherVisible = true
258258

259259
if distance >= config.refreshAt, !renderLock {
260+
#if !os(visionOS)
260261
UIImpactFeedbackGenerator(style: .medium).impactOccurred()
262+
#endif
261263
renderLock = true
262264
canRefresh = false
263265
set(mode: .refreshing)

0 commit comments

Comments
 (0)