RSSAmplifier

Blog

swiftyplace

Learn how to build amazing apps with SwiftUI and Combine

swiftyplace.comRSS feed ↗10 posts

Latest posts

SwiftUI View Lifecycle: When onAppear Actually fires

In simple setups — a view behind an if condition, a sheet, a fullscreen cover — onAppear works exactly how you’d expect. Show the view, onAppear fires. Remove it, onDisappear fires. State is gone. Clean ... Read more The post SwiftUI View Lifecycle: When onAppear Actually fires appeared first on swiftyplace .

The AttributeGraph – The Engine Behind Every SwiftUI View

SwiftUI has been around since 2019. Apple has given us dozens of WWDC talks about it. And yet most developers — even experienced ones — still get tripped up by the same things: These aren’t ... Read more The post The AttributeGraph – The Engine Behind Every SwiftUI View appeared first on swiftyplace .

Debugging Swift Concurrency: “Am I on the Main Actor?” (Not the Main Thread)

When working with async Swift code in Swift 6, you’ll eventually hit this classic question: “Is this code running on the main thread?” You might try the old line: …and get hit with this Swift 6 ... Read more The post Debugging Swift Concurrency: “Am I on the Main Actor?” (Not the Main Thread) appeared first on swiftyplace .

Building an AI Chatbot in SwiftUI with Foundation Models Framework

Apple just changed the game at WWDC 2025 with the Foundation Models framework. For the first time, you can now run the exact same AI model that powers Apple Intelligence directly inside your own iOS ... Read more The post Building an AI Chatbot in SwiftUI with Foundation Models Framework appeared first on swiftyplace .

Introduction to XCTest: How to Write Unit Tests for iOS apps

Writing tests sounds boring until your app breaks and you have no idea why. In this post, we’ll walk through how to write simple, focused unit tests for a SwiftUI app using Apple’s built-in framework: ... Read more The post Introduction to XCTest: How to Write Unit Tests for iOS apps appeared first on swiftyplace .

XCUITest: How to Write UI Tests for SwiftUI Apps

If you’ve ever shipped a bug where a button did nothing, a sheet didn’t show, or the wrong item appeared on screen—this post is for you. Most iOS app bugs happen in the UI layer. ... Read more The post XCUITest: How to Write UI Tests for SwiftUI Apps appeared first on swiftyplace .

Getting Started with Unit Testing for iOS Development

Manual QA is slow, clumsy and error-prone. When you click through every flow in your app by hand, you lose precious time—and you still might wake up at 3 AM wondering if you forgot to ... Read more The post Getting Started with Unit Testing for iOS Development appeared first on swiftyplace .

Can You use PreferenceKeys for Testing SwiftUI Views

The Accidental Discovery One afternoon I was experimenting with EnvironmentKeys—trying to drive navigation and coordinate between screens without resorting to imperative hacks. SwiftUI’s environment feels like a top‑down broadcast: you inject a value at the ... Read more The post Can You use PreferenceKeys for Testing SwiftUI Views appeared first on swiftyplace .

Why We Keep Avoiding Tests in iOS—And What the Tools Should Do About It

Let’s be honest—many of us avoid writing tests for our iOS apps. Not because we don’t care about quality, but because the current tooling often feels like it’s working against us rather than with us. ... Read more The post Why We Keep Avoiding Tests in iOS—And What the Tools Should Do About It appeared first on swiftyplace .

The Composable Architecture: How Architectural Design Decisions Influence Performance

Hey there! So I’ve been diving into architectural patterns lately, and it’s been quite the journey. I wanted to share some thoughts on how the design decisions we make can have these ripple effects throughout ... Read more The post The Composable Architecture: How Architectural Design Decisions Influence Performance appeared first on swiftyplace .