Paul Hudson Profile picture
Learning and sharing at Hacking with Swift, author of Swift, SwiftUI, and iOS books @twostraws@mastodon.social
sirshannon Profile picture 1 subscribed
Sep 22, 2023 8 tweets 3 min read
💥 Today the 100 Days of SwiftUI starts its update process for iOS 17 – look for the first "UPDATED" marker arriving in a few hours!

In the meantime, I picked out five of my favorite YouTube videos from my channel. So, if you'd like to learn something new, try these… 1. Understanding the Standard Library: I walk you through some of the code for Swift's standard library, showing the techniques they use to get maximum performance and flexibility.
Jun 6, 2023 5 tweets 2 min read
So, I tried Vision Pro, and no matter how good you think it is… it's better. Just astonishing immersion backed by mind-boggling audio fidelity, and the UI has been polished and polished until it's almost invisible. Zero friction; I was a confident user in minutes. #WWDC23 There were so many individual experiences that would make you say, "that alone is revolutionary." But when you see 50 of them back to back, culminating in an immersive experience that somehow blows the top of everything you already saw, it's just jaw-dropping.
Sep 6, 2022 7 tweets 3 min read
If you bought Pro SwiftUI: check your downloads! I added a big Xcode project that contains all the code samples in one place, making for easier reference. (Alt text: A long list of chapters from Pro SwiftUI, with one selected that shows anchor preferences making tabs underlined.) Quite a lot of the techniques aren't visual, but here are a handful that I think ought to pique your interest 🙂

Here's the sample recreating Twitter's "heart" animation – the colors and particle sizes are customizable, and it also works with complex styles such as gradients.
Jun 14, 2022 5 tweets 2 min read
What's new in Xcode 14? Source editor changes so good they almost feel like magic, always-live SwiftUI previews, one app icon that works across all sizes, and much more – full video and text here: hackingwithswift.com/articles/251/w… Here are just three of the source editor changes I pick out. First, Xcode 14 adds smart completions for map() – it looks at your new variable name to decide which property to read from the array.
Jun 5, 2022 9 tweets 7 min read
For folks coming to today’s Developer Center open house at #WWDC22, coffee and donuts from Caffè Macs 😋 Apple employees serving up coffee and donuts to folks waitin And we’re in! #WWDC22
Dec 15, 2021 4 tweets 1 min read
Swift Playgrounds 4 is out, and it's a thing of beauty – incredible speed, brilliant code completion, and many tweaks and improvements that make building SwiftUI apps a joy. Full review here: hackingwithswift.com/articles/244/s… TL;DR:

- You can now build SwiftUI apps right on your iPad.
- You can use UIKit if you prefer.
- You can ship your apps to the App Store straight from your iPad.
- It supports SPM packages from GitHub.
- It ships with Swift 5.5 and all its concurrency awesomeness.
Jun 8, 2021 6 tweets 3 min read
A love letter to Xcode 13, in 5 GIFs. Part one: it will automatically import frameworks as needed. #WWDC21 Part two: it spots when you're trying to unwrap an optional and completes it for you. #WWDC21
Jun 8, 2021 5 tweets 2 min read
What's new in SwiftUI for iOS 15? I just spent an hour and 20 minutes answering that question with lots of live code examples – and, inevitably, my dogs 😅 Watch the replay here: And now I’m going to make a snack, pour a glass of wine, and get busy writing – the night is still young 😎
Jun 7, 2021 5 tweets 2 min read
Lots of information about the #WWDC21 Digital Lounges:

- It's all on Slack (wwdc21.slack.com)
- Tap the lightning bolt to request help.
- Questions will be posted through a dedicated "Ask a question" form.
- Each lounge has dedicated activities throughout the week. It's super tightly moderated, which makes sense – you can't post freely in the channels or message other attendees. An exception appears to be the study halls, where free conversation is allowed for the Developer app challenges. These challenges are sounding fun!
Mar 23, 2021 5 tweets 3 min read
80,000 words later, I finally published Swiftly Speaking transcripts for Carola Nitz, Chris Lattner, Mayuko Inoue, Ish Shabazz, and Jordanna Kwok. Transcribing takes a ton of work, but I know it benefits folks who can't watch the videos 🙌 Find them here: hackingwithswift.com/interviews I updated the site to include quick links to each interview, and while you're reading a section it now includes a date plus a link to the full YouTube video if you'd prefer to watch the original recording. Small things, but hopefully helpful! Let me know if you spot any typos 😅
Nov 17, 2020 9 tweets 3 min read
My M1 MacBook Pro arrived today. Chances are you have various questions, but I think a whole lot is summed up in this 50-second video. (Alt text, because Twitter still doesn't make this easy: Xcode 12.3 beta unzips in 5 minutes on an M1, vs 13 minutes 22 seconds on an Intel i9) It's clear why Apple mentioned coding in the keynote – M1 is screamingly fast for developers. I almost feel sorry for Intel!

My Unwrap project (13k lines Swift, 10k Obj-C, more) was 19.5s on Intel vs 11.7 on M1.

AudioKit (39k C, 27k Swift, 12k C++) was 73s on Intel vs 31 on M1.
Dec 11, 2018 18 tweets 7 min read
@biz84 Broadly I welcome folks trying to provide clarity when it comes to platforms. However, I don't think this was a particularly strong effort: it comes across as biased, incomplete, and a bit condescending. I don't think many iOS devs will read it and say "I should try Flutter." @biz84 1. You don't mention at the start that you run a site specifically about Flutter, and are inherently in favor of one side.

2. You jump in immediately with "why Flutter is already a superior technology" – before you've actually shown anything.