Search code examples
iosswiftuiswipegesturerecognizerswipe-gesture

Changing height of leading/trailingSwipeActions on a custom table cell


I'm currently developing a Swift 4 iOS application. I have a custom table cell that is displayed in a card view (see example screenshot below).

When I implement SwipeActions on a row, the height of the background color of the swipe menu takes up the full height of the cell row.

I'd like for it to be just the height of the card view. I should add that each row is a different height as they contain small pieces of text of varying length. Is there a way to achieve this?

Example of card view


Solution

  • This isn't possible. Find an alternative approach for customization.