tags: swiftui

SwiftUI Previews: How to fix 'Cannot convert value of type SomeType to expected argument type EnvironmentObject<SomeType>' errors

Using Environment Objects in a SwiftUI preview is surprisingly straightforward.

More WriteFreely Open-Source Fun: SwiftUI Multi-Platform App

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.

Using Swift Packages in all Multiplatform SwiftUI App targets

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?

Angelo Stavrow

Montreal, Canada
Email me

Mobile/full-stack developer. Montrealer. Internet gadabout. Your biggest fan.