I'd like to vet two scenarios:
- new Phoenix app
- existing Phoenix app
Add these deps:
{:live_view_native, github: "liveview-native/live_view_native", branch: "main", override: true},
{:live_view_native_stylesheet, github: "liveview-native/live_view_native_stylesheet", branch: "main", override: true},
{:live_view_native_live_form, github: "liveview-native/liveview-native-live-form", branch: "main"},
{:live_view_native_swiftui, github: "liveview-native/liveview-client-swiftui", branch: "main"}
and run lvn.setup and follow the instructions.
You can validate the installation by visiting: http://localhost:4000/assets/app.swiftui.styles to see the stylesheet render or generate a LiveView Native view with mix lvn.gen.live swiftui Home
and visit the URL with ?_format=swiftui
that is for that LiveView (assuming you have an existing route for a Home LiveView