New in SwiftUI 3: Swipe Left or Right with SwiftUI 3

DevTechie
DevTechie
Published in
5 min readSep 22, 2021

--

WWDC21 introduced many improvements to third iteration of SwiftUI(SwiftUI 3). With these additions SwiftUI team has made our work even easier.

Today, let’s talk about one such feature, custom swipe action modifier. Starting iOS 15+ and SwiftUI 3+, we now have ability to display actions when a row in a list is swiped right or left.

Here is how function declaration looks like

func swipeActions<T>(edge: HorizontalEdge = .trailing, allowsFullSwipe: Bool = true, content: () -> T) -> some View…

--

--