Jérôme Danthinne

@jeromedanthinne
71 Followers
82 Following
74 Posts
iOS Dev @ Neopixl, Drummer, Father
GitHubhttps://github.com/jdanthinne
Workhttps://www.neopixl.com/

I've been thinking about this one for a long time. There is subtly here, but I tried my best to keep it short. I don't think you should use MainActor as the default isolation.

https://www.massicotte.org/blog/mainactor-by-default/

MainActor by Default

It's enabled for new projects, but I wouldn't recommend it.

massicotte.org
@mattiem @donnywals @swiftlee As concurrency champions, any idea on how to make some kind of equivalence to RxSwift/Combine onSubscribed? The idea is to launch an async operation as soon as a stream is started, and handling any error from the operation and propagating it to the main stream.
Here's what I'm using now, but not really happy with that…
https://gist.github.com/jdanthinne/f45eb390102b03e0244a6519e9b4382c
Extension for AsyncSequence to launch an operation when stream starts

Extension for AsyncSequence to launch an operation when stream starts - AsyncSequence+onSubscribed.swift

Gist
How is sending troops into U.S. cities NOT grounds for immediate impeachment? It is unprovoked, unjustified, and completely unconscionable. We declared independence from a King 249 years ago for similar transgressions. Guess we have to go and do it again.
I think the tradeoffs of using UITabBarController are piling up to the point where I will have to revert my Broadcasts rework from a couple days ago. It can't really support my UI in this seed, and I doubt updates will make it viable by September — and if I do wait for it, it'll halt all my forward progress on the update in the meantime. It was definitely worth attempting, but I can see it's not giving me what I want
Any idea on why the presentation detents does not animate when using the on(Scroll)GeometryChange? #swiftui

Someone asked me how to create a stream with a timeout. I've never had to do this before, but I tried. It's hard!

I don't love my solution, and I'm not even sure if it is right. Maybe AsyncAlgorithms could help here?

https://gist.github.com/mattmassicotte/bde7a4931a33a36361df0e068a41326a

streamtimeout.swift

GitHub Gist: instantly share code, notes, and snippets.

Gist
Any easy trick to have timeout handling between events of an AsyncThrowingStream? #swift
My dad's home was destroyed by a massive flood in the city where I grew up and where he currently lives. It’s the worst flood in over 100 years, and he lost almost all of his possessions, including the equipment he uses for work. I'm trying to help him out as much as I can, so all of my income in the following months will be going towards helping him. If you'd like to help, you can do so by getting any of my products listed here: https://buddysoftware.tech or here: https://insidegui.gumroad.com
Best Buddy Apps (Buddy Software LTD)

Anybody still awake 🌙?

Good! The 53rd update to https://bestinclassiosapp.com just dropped - please enjoy learning all about multitasking and multiple windows!

Still only $80, but not for much longer! Why? Because after 2.5 years, I'm nearing the finish line 🏃🏻‍♂️!

A Best-in-Class iOS App: The Book Series

Learn how to create best-in-class iOS apps. Five complete books on accessibility, design, user experience, iOS APIs and more written in SwiftUI and UIKit.

A Best-in-Class iOS App: The Book Series

We're giving away one of these spiffy blue Halide hoodies to our Mastodon followers! To enter, simply share this toot. https://mastodon.social/@halide/109990537024059845

Winners announced Friday, 2:30 PM PST.