From b43774fcd0f4fd7c618e39baee3fe7ce76eb3507 Mon Sep 17 00:00:00 2001 From: Adrian Schoenig Date: Thu, 11 Apr 2024 14:38:22 +1000 Subject: [PATCH] visionOS compile fix --- Sources/TGCardViewController/TGCardViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TGCardViewController/TGCardViewController.swift b/Sources/TGCardViewController/TGCardViewController.swift index fc65284..7f2d592 100644 --- a/Sources/TGCardViewController/TGCardViewController.swift +++ b/Sources/TGCardViewController/TGCardViewController.swift @@ -1499,7 +1499,7 @@ extension TGCardViewController { // but scroll down a little; then you start dragging with scroll to zero // you keep scrolling and fling it a little that it snaps to the peaking // position. - if #available(iOS 17.4, *) { + if #available(iOS 17.4, visionOS 1.1, *) { scrollView.stopScrollingAndZooming() }