Commit 8c3ff14
Reveal swipe actions from trailing (right) edge (#34)
Flip SwipeableItemWithActions so users drag the row right-to-left to
reveal action buttons, with the buttons sitting on the trailing (right)
edge instead of the leading (left) edge. Matches the iOS app's
swipeActions(edge: .trailing) and the platform-conventional
swipe-to-reveal gesture.
- Actions Row aligned to Alignment.CenterEnd of the wrapping Box
- Drag offset coerced to [-contextMenuWidth, 0f]
- Revealed anchor flipped to -contextMenuWidth; half-way fling threshold
checks <= -contextMenuWidth / 2f
Public API (isRevealed, actions, onExpanded, onCollapsed, content,
modifier) is unchanged, so both call sites pick up the new direction
with no edits:
- ShopDetailView — Complete / Idle actions on item-tag rows
- ItemTagListView — Delete action on item-tag rows
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c138771 commit 8c3ff14
1 file changed
Lines changed: 5 additions & 4 deletions
File tree
- app/src/main/kotlin/com/nativeapptemplate/nativeapptemplatefree/ui/common
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments