Thomas Ricouard Profile picture
Jan 11 8 tweets 4 min read
Let's start a thread on my best finding in #SwiftUI for iOS 16 exclusively, as I've used it to write #IceCubesApp
The 1.0 about to get released on the App Store (well if Apple finally decide so) so this is a good time for that thread.

github.com/Dimillian/IceC…
1. .toolbar is more powerful than ever. You can use ToolbarTitleMenu to have a complexe menu right in the title of navigation bar. Don't forget you can also use .toolbar with keyboard placement on TextField for keyboard accessory view. A screenshot of Ice Cubes iOS application showing the toolba
2. .presentationDetents is finally available in #SwiftUI for presenting sheet. You can use medium, large, a fraction of the height of the screen and a totally custom size.
3. New Environment values like .dismiss make it super easy to manage modal. And it's finally seems reliable.
4. One of the biggest iOS 16 news is NavigationStack, Ice Cubes app navigation is super simple. You can reference RouterPath from anywhere, and use the programatic .navigate(to:) API or use a RouteDestinations value for NavigationLink.
5. PhotoPicker is amazing and simple to use. Allow you to easily present the photo library UI and keep track of the selected images to load them into your app.

developer.apple.com/documentation/…
6. .searchable API is even more powerful now that you can easily use tokens, suggest tokens, decide of the search bar placement etc... I try to use the full extent of it in the app but I could do better.
7. I don't use it in the app yet, but you can now use TextField with a .vertical axis. This is very good for multiline text field. But it's not UITextView yet. And I wish there would be a SwiftUI input field that support AttributedString, for now I have to wrap a UITextView.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Thomas Ricouard

Thomas Ricouard Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(