Swift with Majid
Read post

Swipe actions outside of List in SwiftUI

SwiftUI's new `swipeActionsContainer` view modifier enables swipe actions outside of `List`, allowing developers to use them in scroll views, lazy stacks, and custom layouts. Previously, swipe actions were exclusive to `List`. By attaching `.swipeActionsContainer()` to any container and `.swipeActions` to individual items, you get native swipe behavior including single-row reveal, scroll-dismiss, and tap-outside-dismiss — without being forced to use `List`.

    #ios#swift#swiftui
Jun 16•3m read time•From swiftwithmajid.com
Post cover image
193 Impressions
Swift with Majid's image
Swift with Majid

SwiftWithMajid is a platform for learning and mastering Swift programming, offering tutorials, artic...

67 Followers

•

119 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard