iOS at @photoroom_app 🇫🇷 | Entertainer at @ios_memes | SwiftUI teacher at @mobileworkshop5 | French translator of @NSHipster | @insadelyon alumni
Dec 19, 2022 • 15 tweets • 6 min read
KeyPaths are a pretty popular Swift syntax!
But do you think you know all the features of KeyPaths? 🤨
Here are 5 things you (probably) didn't know about KeyPaths 🧵
Let’s start with #1️⃣: Whenever you use a method like `.map { }` or .filter { }`, you can pass it a KeyPath instead of a closure!
And the compiler will take care of automatically translating that KeyPath to a closure 👌
Dec 5, 2022 • 13 tweets • 4 min read
You’ve heard that actors are a very powerful feature of Swift, but you're not really sure how they work? 🤨
Don’t worry! I’ve got you covered! 😌
In just a few tweets we’ll go over everything you need to understand how to use an actor in Swift! 🧵
Let’s start with this class that implements a simple cache of images:
Nov 21, 2022 • 11 tweets • 4 min read
You’ve heard that async / await is amazing with asynchronous code, but you're not really sure how it works? 🤨
Don’t worry! I’ve got you covered! 😌
In just a few tweets we’ll go over everything you need to know to understand how this powerful tool works! 🧵
Let’s start by talking about functions!
In Swift there are two kind of functions.
First, we have the functions that don’t need to wait on anything to compute their results:
Sep 19, 2022 • 11 tweets • 3 min read
MVVM can feel a bit mysterious when you’ve never used it 😶🌫️
But I swear it’s really simple to understand! 😌
In just a few tweets we’ll go over everything you need to understand how this architecture works! 🧵
Let’s start with this ViewController.
If you think about it, this ViewController actually has a lot of responsibilities!
It must: fetch its data, format its data and then finally display its data 💪
Jan 19, 2019 • 10 tweets • 6 min read
My second talk at @iosconfsg on behalf of @worldlinexpert was all about how Swift KeyPaths can be leveraged to build some pretty effective syntax and patterns. Here's a thread that recaps some of the key ideas ⤵️
Swift 4 has introduced a new construct called KeyPaths, which allow to defer calls to the getter or setter of a property. They essentially perform the same job than a closure would, but with less $0 hanging around!
Jan 16, 2019 • 37 tweets • 12 min read
In a few hours I’m going to take-off ✈️ and head towards Singapore 🇸🇬 to attend @iosconfsg on behalf of @worldlinexpert 🤩
I plan on sharing pics 📸 and video 🎥 updates the whole time I’m away!
I’ll post everything right below this tweet ⤵️
First step of the trip: let’s ride the (very expensive 😱) shuttle, heading to the airport!