Find the SwiftUI State Change Behind a Slow Body Update
Use Instruments' SwiftUI instrument to connect an expensive body update back to the state mutation that caused it, then fix the view instead of guessing.
Read moreShowing 61–72 of 86 posts
Use Instruments' SwiftUI instrument to connect an expensive body update back to the state mutation that caused it, then fix the view instead of guessing.
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 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 moreSwiftUI finally has a native WebView through WebKit. Let's replace the old WKWebView wrapper with WebView, then use WebPage when we need loading progress, page titles, and find-in-page...
Read moreUse the Translation framework from SwiftUI with language availability checks, TranslationSession.Configuration, .translationTask, and batch translation.
Read moreSwift Charts gained function plotting APIs so you can draw smooth math curves without precomputing every point yourself. Build a normal distribution chart and compare it with sampled LineMark data.
Read moreReplace preference-key scroll tracking with onScrollGeometryChange, visibility modifiers, and ScrollPosition for feeds, pagination, and scroll-aware controls.
Read more