Skip to content

Commit

Permalink
Merge pull request #20 from Econa77/support-vision-os
Browse files Browse the repository at this point in the history
Fix compilation for visionOS
  • Loading branch information
gh123man authored Oct 24, 2023
2 parents 3349c07 + 53a071d commit 1daf7c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Refresher/Refresher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ public struct RefreshableScrollView<Content: View, RefreshView: View>: View {
isRefresherVisible = true

if distance >= config.refreshAt, !renderLock {
#if !os(visionOS)
UIImpactFeedbackGenerator(style: .medium).impactOccurred()
#endif
renderLock = true
canRefresh = false
set(mode: .refreshing)
Expand Down

0 comments on commit 1daf7c4

Please sign in to comment.