Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Last active July 31, 2024 19:51
Show Gist options
  • Save bcardarella/4c7079b83240d4129e5260eab0d1ce47 to your computer and use it in GitHub Desktop.
Save bcardarella/4c7079b83240d4129e5260eab0d1ce47 to your computer and use it in GitHub Desktop.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment