Subtitles section Play video Print subtitles In iOS 18, we can easily create mesh gradients to improve the look and feel of our app. And as you can see here, they can also be animated for that little extra special something. I've seen them used in a foreground style for a text, which is pretty cool. Also on buttons in like an animated border around a button. And even that new Siri animation looks like a mesh gradient to me. And when done subtly, I think these look amazing. My worry, though, is now that it's so easy, we're just going to see mesh gradients everywhere. So my advice, use them sparingly, keep it subtle. Today's video is sponsored by Squarespace. We can now transition from one view to another using a zoom transition. And when you use this, it replaces the old slide in from the left transition with a zoom. And when you tap the back button, it collapses back into the item that it came from. And this zoom transition also works with sheets or full screen covers. And it just feels so natural on a grid UI to zoom in out of the item and then collapse back into the item when you tap on it. I'm a huge fan of this edition. I'm going to be using it in many, many places. But again, use it when appropriate. Don't overdo it. I am in love with SF Symbols, and they just keep getting better year after year. And that's no different this year with SF Symbols 6. We get 800 new symbols, which brings the count up to over 6,000, as well as new animations like wiggle. Breathe. And rotate, which rotates intelligently, it doesn't rotate the entire symbol, just rotates the appropriate element of the symbol. And the dot replace animation gets replaced with magic replace. And as you see here, it just intelligently changes icons, like if a badge pops up on the same icon or a slash goes through it. Just a nice little touch. So more symbols, more animations. Love it. On iPad, the tab bar over on the side can now float up at the top, freeing up all that screen real estate for your content. And the user gets to pick and choose what goes into that floating tab bar so they can put what they use most up there and hide things they don't often use. And you can even adapt a similar behavior on Mac OS by styling the tab bar to appear as a segment to control in the toolbar. For the iPads, this is a way better experience, in my opinion, and I can't wait to build this into Creator View. Speaking of building things into Creator View, you know, sometimes it's just the little things in life that are just oh so sweet. And this next improvement is a small one, but I love it. You can now indicate sheet size on the iPad. For example, you can indicate .form so you get a proper size sheet for a form, not this gigantic, unnecessary sheet for a small form. Now I know this small form could be a popover view like you see like on the Calendar app, but it's just to demonstrate how ridiculous the sheet size is. But no more, no more. We can indicate .form to get a much smaller, more reasonable sheet size. Or better yet, you can specify a custom size to make it however you like. So no more giant sheets for everything on iPad. This is great. The new text format for date reference is awesome. As you can see on the screen, you pass the text in two dates, right? We have current date and next song date, and it can generate a reference, offset or timer based on those two dates in a wide variety of formats. As you see here on the screen, this builds on the relatively new formatter API that was introduced in iOS 15. And if you haven't worked with that yet or checked it out, definitely go to gosh darn format syntax, scroll through there. Like, it's amazing how powerful these are. I use them extensively in my apps, and it's just been such a time saver. They're so nice to use. Now, if you're here staying up to date on the latest and greatest in Swift UI, I know you're building some pretty great apps, and it's best to have a personal website to showcase your work. And that brings me to today's sponsor, Squarespace. Squarespace is an all in one platform to help you get that iOS developer portfolio up and running very quickly. Now I know we're developers. We can build a website ourself, but we're also iOS developers. And I would argue there's an opportunity cost of your time. Now, do you want to spend your time learning about web development, responsive design, all the different browsers, or do you want to spend your time building apps? So that's why I always recommend letting Squarespace take that off your plate to build your iOS developer portfolio. They have all kinds of beautiful themes and templates to get you started. And you can use their next generation website editor with the fluid engine to just really unlock all the creativity in the world. You can even use Squarespace blueprint and Squarespace AI to help you figure out what to write on your website. Cause that's always the hardest part. Like I don't even know what to say here. Throw it into Squarespace's AI and they'll help you out. They handle all the SEO and analytics for you. Again, Squarespace handling your website just takes so much off your plate. So when you're ready to get started, go to squarespace.com. And when you're ready to launch, go to squarespace.com slash Sean Allen to get 10% off your first purchase of a website or domain.
B1 US My Favorite SwiftUI Updates in iOS 18 1 0 Fendy Wu posted on 2024/12/19 More Share Save Report Video vocabulary