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 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