From fefc7aa2ba0b7b4f3df003ddc62dbd9de010afb7 Mon Sep 17 00:00:00 2001 From: Adrian Schoenig Date: Fri, 10 May 2024 17:42:21 +1000 Subject: [PATCH 1/2] Compile fix --- Sources/TGCardViewController/TGCardViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/TGCardViewController/TGCardViewController.swift b/Sources/TGCardViewController/TGCardViewController.swift index 7f2d592..27797eb 100644 --- a/Sources/TGCardViewController/TGCardViewController.swift +++ b/Sources/TGCardViewController/TGCardViewController.swift @@ -1499,9 +1499,11 @@ 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 swift(>=5.10) // Proxy for Xcode 15.3+ if #available(iOS 17.4, visionOS 1.1, *) { scrollView.stopScrollingAndZooming() } +#endif guard traitCollection.verticalSizeClass != .compact else { return From d95827115bab24f256109c30ece5995f071ca941 Mon Sep 17 00:00:00 2001 From: Adrian Schoenig Date: Fri, 10 May 2024 17:45:16 +1000 Subject: [PATCH 2/2] Check Ventura, too --- .github/workflows/swift.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f1bb737..1cf5463 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -7,17 +7,27 @@ on: branches: [ main ] jobs: - build_xcode: + build_xcode_sonoma: runs-on: macos-14 steps: - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: 15.3 # latest-stable - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build TGCardVC run: xcodebuild -workspace . -scheme TGCardViewController -destination 'platform=iOS Simulator,name=iPhone 14' + build_xcode_ventura: + runs-on: macos-13 + steps: + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + - uses: actions/checkout@v4 + - name: Build TGCardVC + run: xcodebuild -workspace . -scheme TGCardViewController -destination 'platform=iOS Simulator,name=iPhone 14' + examples: runs-on: macos-14 @@ -25,7 +35,7 @@ jobs: - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: 15.3 # latest-stable - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Build Example run: | cd Example