SwiftUI views typically update in response to data changes. TimelineView extends this model by reevaluating a view according to a timeline, making it possible to build interfaces that refresh periodically or change continuously without relying on explicit state changes.
SwiftUI includes built-in schedules for common update patterns, from minute-based refreshes to continuously changing visual effects. In this post we'll look at how these schedules work and how they can be used to drive updates in SwiftUI views.
Swift 6.4 continues the ownership work that has been building through noncopyable types, borrowing, consuming parameters, lifetime dependencies, Span, and MutableSpan. The important part of this direction is that Swift is gaining more ways to describe ownership and access rules directly in APIs, instead of leaving them as compiler internals, documentation comments, or unsafe pointer conventions.
When developing iOS apps, we often need to persist sensitive user data such as passwords, authentication tokens, or cryptographic keys.
For this type of data, storing values in plain files or UserDefaults is usually not appropriate. Instead, iOS provides the Keychain Services API, which stores sensitive data in an encrypted and system-managed database.
In this article, we'll look at how the Keychain API works and how to save, retrieve, update, and delete keychain items in Swift.
I got halfway through the manager before something started to feel off. I had AsyncStreams feeding into completion handlers feeding back into delegate methods. I had bridges on top of bridges. The "modern" code I was writing was making the rest of the system harder to read, not easier.
And then it clicked: I had built a beautiful Tesla engine and was now trying to bolt it onto a horse carriage.
Swift Concurrency fundamentally changed how asynchronous programming works in Swift. Before async/await arrived, developers relied heavily on completion handlers, delegates, Combine pipelines, and Grand Central Dispatch (GCD). These approaches worked, but they often made asynchronous code difficult to reason about, debug, and maintain.
Agent Skills are becoming popular in developer communities for their ability to quickly help test technologies, APIs, and SDKs to prove ideas and concepts. Get ready to create a functional iPhone app with a one-shot prompt for 1–1 and group chat using Swift Agent Skills by Stream without consulting the API/SDK docs.
An iOS sheet defaults to covering around half the screen, and while you can specify custom detents, it’s not enough. This article shows you how to easily make a sheet size to fit its content.
TL;DR
The approach in this code can be found in PresentationKit, which is an open-source library I created to handle alerts, modals, sheets, and toasts. Check out the project for more handy examples.
SwiftUI apps often need to perform async operations that will throw errors when things go wrong. This post shows how you can present alerts for such errors, without a bunch of messy code.
So, you should keep in mind every custom type or function you build to cover functionality on older platforms, because you might need to delete them in a year as soon as you bump the minimal platform version. Or, you can make the compiler remind you about that code. This week, we will talk about a way to make the compiler help us in identifying dead code in our codebase.
Who would have thought that software development can spawn controversy? Never mind code padding and whethe curly braces should start on a new line, check out these Swift features.
Are you tired of Ruby and Fastlane installation issues? There's got to be a better way! Discover Codemagic open source CLI tools. It is not a drop-in replacement for all of what Fastlane does (screenshots for example), but we use it at Codemagic to build and publish iOS and Android apps, also versioning and device provisioning.