Reading List

How to Bypass SwiftUI App Launch During Unit Testing from Michael Tsai RSS feed.

How to Bypass SwiftUI App Launch During Unit Testing

Jon Reid: For apps with an application delegate, I’ve written How To Switch Your iOS App Delegate for Improved Testing. This lets us set up a separate launch sequence for test runs that does only the bare minimum. Can we do the same thing for SwiftUI apps that use @main? Yes, we can.[…]Basically, this conditional […]