Vincent Pradeilles
banner
v-pradeilles.bsky.social
Vincent Pradeilles
@v-pradeilles.bsky.social
I'm sure you've used the modifier `. task { }` before...

...but did you know it has a hidden feature? 🤨

Let me explain 😌
November 14, 2025 at 12:41 PM
```
let name: String?

"Hi, \(name ?? "stranger")"
```

This code is super common to deal with an Optional inside a String interpolation.

But did you know that Swift 6.2 introduces a more powerful syntax? 🤨

Let me explain 😌
October 31, 2025 at 12:33 PM
```
struct MyModifier: ViewModifier {
// ...
}
```

Have you ever created a custom ViewModifier? 🤨

Did you know that it's actually often not really needed? 🥲

Let me explain 😌
October 17, 2025 at 11:36 AM
iOS 26 is about to release and your app isn't yet ready for Liquid Glass? 🫣

Good news: It's totally possible to opt-out of the new UI design!

Let me show you how 😌
September 19, 2025 at 11:36 AM
New in Swift 6.2: Raw Identifiers can be used for function names!

All you need to do is put the function name between backquotes...

...and you can use characters that are not allowed in function names, like white spaces or operators!

Perfect for functions that implement tests 👌
August 25, 2025 at 11:34 AM
When you need to run lots of concurrent jobs, using a TaskGroup is the easiest option...

...but did you know there's one mistake that's very easy to make if you're not careful?

Let me explain 😌
August 15, 2025 at 11:58 AM
New in Xcode 26: there's a shortcut to ask the AI to make quick changes to a piece of code!

(make sure to install macOS Tahoe beta if you want to try the feature!)
June 23, 2025 at 11:33 AM
You need a bit more time to migrate your app to Liquid Glass?

It's totally possible to opt-out of the new UI design!

Just add the key UIDesignRequiresCompatibility to your Info.plist, with the value YES 👌

But be careful: Apple said it will only be allowed until next year...
June 18, 2025 at 11:33 AM
New in Xcode 26: you can ask the AI to explain a piece of code!

(make sure to install macOS Tahoe beta if you want to try the feature!)
June 16, 2025 at 7:02 AM
`async let` is a very powerful syntax!

But did you know it has a hidden feature? 🤨

Let me show you 😌
June 13, 2025 at 11:33 AM
New in Xcode 26: the AI can automatically fix build errors!

(make sure to install macOS Tahoe beta if you want to try the feature!)
June 13, 2025 at 7:02 AM
New in Xcode 26: you can generate Playgrounds and the required mocked data will be automatically provided!

(make sure to install macOS Tahoe beta if you want to try the feature!)
June 12, 2025 at 11:33 AM
New in Xcode 26: the AI can automatically document a piece of code!

(make sure to install macOS Tahoe beta if you want to try the feature!)
June 12, 2025 at 7:02 AM
New in Xcode 26: there's an easier way to record UI tests!

But it still uses XCTest under-the-hood though: maybe we'll get support for UI tests in Swift Testing next year 🤞
June 9, 2025 at 10:07 PM
New in Xcode 26: the macro #Playground lets you execute code locally!

Basically this is like SwiftUI Previews, but for non-UI code 👌
June 9, 2025 at 9:32 PM
It's SO frustrating when a TextField doesn't display it's full input 😡

But did you know that SwiftUI has a built-in way to solve this? 🤨

And that it only requires a single line of code? 😌
June 6, 2025 at 11:33 AM
Did you know that SwiftUI has a modifier that lets you hide sensitive information by adding a single line of code?

It's called `.privacySensitive()` and it will automatically hide the view it's attached to as soon as the app goes into the background 👌
June 5, 2025 at 11:33 AM