Keep a User-Started Export Alive with BGContinuedProcessingTask
Use BGContinuedProcessingTask for visible, user-initiated work that may need more time after your app leaves the foreground.
Read moreShowing 109–120 of 144 posts
Use BGContinuedProcessingTask for visible, user-initiated work that may need more time after your app leaves the foreground.
Read moreUse Swift Testing exit tests to verify deliberate process exits without crashing the whole suite, including fatalError and preconditionFailure paths.
Read moreRecord screenshots, JSON payloads, and plain-text diagnostics from Swift Testing so a failed test tells you what actually happened.
Read moreTeach an on-device Foundation Models session to call a small Swift tool, validate the arguments, and return app data without turning your SwiftUI view into an AI grab bag.
Read moreUse Foundation Models streaming APIs to update SwiftUI as an on-device response is generated, with cancellation, availability checks, and a production-shaped view model.
Read moreSwift 6.2 makes concurrency feel more natural for app code, but it is still easy to accidentally leave expensive work on the main actor. Here is the mental model I use for SwiftUI apps...
Read moreFoundation Models lets Swift apps ask the on-device language model for structured output. Here is a small SwiftUI search suggestion model using availability checks, @Generable, and @Guide...
Read moreSwift Charts can plot real three-dimensional data with Chart3D. Here is a compact SwiftUI example using PointMark, Z-axis values, species styling, and Chart3DPose...
Read moreSpeechAnalyzer and SpeechTranscriber bring a modern async speech-to-text API to Apple platforms. Here is a small file transcription example that returns an AttributedString.
Read moreApp Intents are not just for Shortcuts. Here is a small foreground intent that opens your app and routes into a SwiftUI screen from system surfaces...
Read moreSwiftUI's TextEditor can edit AttributedString directly on the newest Apple platforms. Here is a small rich text editor with selection-aware formatting controls...
Read moreUse the Translation framework from SwiftUI with language availability checks, TranslationSession.Configuration, .translationTask, and batch translation.
Read more