The provided snippet shows only the usage of single swipe action for a Label
with text "ok".
I was not able to reproduce your scenario with the empty area as the posted code is not showing your entire implementation. In the lines below I am going to post some instructions on how to set the swipe limits no matter what swipe template you are using with the help of itemSwipeProgressChanged event.
You can use as a reference this sample
(HTML file) and its code behind setup
(Component file). In the linked example the methods onCellSwiping
(callback for itemSwipeProgressChanged
event) and onSwipeCellStarted
(callback for itemSwipeProgressStarted
event) are used to demonstrate how to assign swipe limits. This way you can set your own limits on up to where the user can swipe using the threshold
property. Detailed description of this functionality is posted in this article section
For example, let's assume that you need only left swipe action with a "OK" Label.
Using the same example
as code base, I could introduce a Grid row with auto height (same as Stacklayout)
for my swipe template.
Then by using the cell swiping event I can control the left swipe limit
as done here
and set the threshold
as done here (to trigger the action when the swiped item passes a threshold).
Notice that the swipe limist are set with using getMeasurableWidth method which you can use to get the dimension of your StackLayout (in your setup with width="100%") and use the received value to assign the left (and/or right) swipe limits.