Skip to content

Commit 0e84f03

Browse files
committed
fix(ios): stabilize AHA drag and move release to Xcode 26
Keep the AHA detail content area owned by its scroll view so upward drags no longer jitter the whole sheet, and pin the release workflow to Xcode 26 while preserving the app's iOS 18 deployment target. Made-with: Cursor
1 parent 11eb2d7 commit 0e84f03

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/release-ios.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,16 @@ jobs:
7676
7777
# ── iOS IPA (cloud signing + TestFlight) ─────────────────────
7878
build-ios:
79-
runs-on: macos-latest
79+
runs-on: macos-26
8080
needs: prepare
8181
steps:
8282
- uses: actions/checkout@v4
8383

84+
- name: Select Xcode 26
85+
uses: maxim-lobanov/setup-xcode@v1
86+
with:
87+
xcode-version: '26'
88+
8489
- name: Install Apple certificates
8590
env:
8691
APPLE_DIST_P12: ${{ secrets.APPLE_CERTIFICATE_P12 }}

ios/ClawOS/Features/Dashboard/MomentDetailView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ struct MomentDetailView: View {
440440
)
441441
}
442442
.contentShape(Rectangle())
443-
.gesture(cardDragGesture)
444443
)
445444
.clipShape(
446445
UnevenRoundedRectangle(

ios/ClawOS/Features/Dashboard/MomentDismissGestureBehavior.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ enum MomentDismissGestureBehavior {
3434
) -> MomentDismissAxis? {
3535
let dx = translation.width
3636
let dy = translation.height
37-
let absDx = abs(dx)
3837
let absDy = abs(dy)
3938
let startsFromEdge = startLocation.x <= edgeActivationWidth
4039

@@ -54,11 +53,6 @@ enum MomentDismissGestureBehavior {
5453
return .horizontal
5554
}
5655

57-
if dy > verticalDistance,
58-
dy > absDx * verticalDominance {
59-
return .vertical
60-
}
61-
6256
return nil
6357
}
6458

ios/ClawOSTests/ClawOSTests.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,4 +500,15 @@ struct ClawOSTests {
500500
#expect(shouldDismiss)
501501
}
502502

503+
@Test("Aha 故事内容区下拉不会触发退出手势")
504+
func momentDismissIgnoresVerticalPullInsideContent() {
505+
let axis = MomentDismissGestureBehavior.beginAxis(
506+
startLocation: CGPoint(x: 220, y: 520),
507+
translation: CGSize(width: 12, height: 72),
508+
allowsContentHorizontalDismiss: true
509+
)
510+
511+
#expect(axis == nil)
512+
}
513+
503514
}

0 commit comments

Comments
 (0)