Skip to content

Instantly share code, notes, and snippets.

View danallenio's full-sized avatar

Dan Allen danallenio

View GitHub Profile
@danallenio
danallenio / WatchOS Multiplatform Setup.md
Created June 24, 2023 01:12
How to add a WatchOS app to a Multiplatform project and share the SwiftUI app lifecycle and root views

WatchOS Multiplatform Setup

How to add a WatchOS app to a Multiplatform project and share the SwiftUI app lifecycle and root views.

The WatchOS target

  1. File > New > Target…
  2. Under the WatchOS tab, select App and press Next.
  3. Set the product name. Right now Xcode requires a different name than the