Using Environment Objects in a SwiftUI preview is surprisingly straightforward.
Hot on the heels of the WriteFreely Swift Package, I’m kicking off another fun open-source project: building an official WriteFreely client for all Apple platforms as a SwiftUI multiplatform app.
SwiftUI multiplatform apps have both iOS and macOS targets, but adding a Swift Package dependency to your target via Xcode requires you to choose one. So how do you give both targets access to the package?
Tinkerer with a strong interest for development, of both the personal and software persuasion; easily defeated with spatulas. Equal measures enthusiasm and concern for tech's effect on the world. He/him.