Search

Travel Tips

How To Build A Forum Website From Scratch Using Django...

Travel Tips

Free AI tools Enhancing images, video editing, and content creators...

Travel Tips

SpaceX and NASA Join Forces for Sunita Williams' Spectacular Earth...

What’s new features in SwiftUI for iOS 15 (apple iphone 13 and apple iphone 14)

  • Share this:
post-title

Before we begin, it’s worth noting that for SwiftUI 5.5 you must be using Xcode 15 or higher versions. Also, your deployment target should be at least iOS 15.

Swift 5.5 is now officially released! Swift 5.5 is a massive release, which includes newly introduced language capabilities for concurrency, including async/await, structured concurrency, and Actors. My heartfelt thanks to the entire Swift community for all the active discussion, review, and iteration on the concurrency (and other additions) that make up the release. Thank you!

SwiftUI’s refreshable() modifier lets you attach functionality to a List to be triggered when the user drags down far enough. iOS will automatically show an activity indicator for as long as it takes for your code to finish running.

SwiftUI Lists are pretty critical to data-based apps. I use Lists in almost every iOS app I build, typically to represent objects stored in Realm. That's why I always go there first when seeing what's new.
Custom Swipe Options
We've all used mobile apps where you swipe an item to the left for one action, and to the right for another. SwiftUI had a glaring omission—the only supported action was to swipe left to delete an item.
This was a massive pain.
This limitation meant that my task-tracker-swiftui app had a cumbersome UI. You had to click on a task to expose a sheet that let you click on your preferred action.
We've all used mobile apps where you swipe an item to the left for one action, and to the right for another. SwiftUI had a glaring omission—the only supported action was to swipe left to delete an item.
Expectations were always going to be high for SwiftUI this year, but the team didn’t disappoint – they’ve shipped a massive collection of improvements and features, including a new AsyncImage view for loading remote images, swipe actions for list rows, pull to refresh, plus shorter, simpler APIs for common uses. Alongside huge improvements to Swift itself (see What's new in Swift 5.5 for more on that), this is another significant leap forward for SwiftUI and I’m really keen to dive in.

 

Sonjoy Bhadra

About author
Python | Django | Laravel | 14 Years Experience
View all posts (125)
Comments