Рет қаралды 13,140
Head to squarespace.com/seanallen to save 10% off your first purchase of a website or domain using code SEANALLEN.
In today's video I show you how to use the new swipe actions introduced in iOS 15 in SwiftUI. Adding a leading or trailing swipe action to a list in SwiftUI has now been made relatively easy with the new .swipeActions modifier. In this video, I demonstrate how to create them from both the leading and trailing sides, disable full-swipe functionality as well as customize the color of the button.
This tutorial was created in Xcode 13 (Beta 1) and Swift 5.5.
Note: These swipe actions require iOS 15 support, so you may need to download Xcode 13 beta (if it's not officially released yet).
SF Symbols Video:
• What's New in SFSymbol...
If you like my teaching or presentation style, I've started creating my own courses:
seanallen.teachable.com/
Timestamps:
0:00 - Important Details
0:45 - Basic Syntax
2:34 - Some "Gotchyas" to Watch Out For
4:19 - Button Role - Destructive
5:00 - Multiple Swipe Actions
5:36 - Parameter Default Values
6:03 - Leading Edge Swipe Actions
Twitter:
/ seanallen_dev
Link to my book - How I Became an iOS Developer:
gumroad.com/l/sean-allen-origin
Hired.com:
hired.com/x/1n01g
Check out my podcast, iOS Dev Discussions:
itunes.apple.com/us/podcast/i...
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Ray Wenderlich Books:
store.raywenderlich.com/a/208...
Ray Wenderlich Videos:
store.raywenderlich.com/a/208...
Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803
Learn Advanced Swift Here:
gumroad.com/a/656585843
Links to my iOS Dev Setup & iOS Dev Book Recommendations
www.amazon.com/shop/seanallen
#swift #softwaredeveloper #iosdeveloper