You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine your liveview is the module defmodule MyApp.SearchLive.Index
You run mix lvn.gen.live swiftui SearchLive.Index or mix lvn.gen.live swiftui Search, both have issues with the assumptions the generator makes
This can be made to work manually with some manual renaming of the modules, but I noticed that it wasn't able to find the default *.neex file, it complained about a missing render function. If you add a manually defined render fn to the new file, it will work however.
Perhaps one should have to supply the full namespace to the generator command (e.g., SearchLive.Index) instead of the currently desired Search
The text was updated successfully, but these errors were encountered:
I'll see about getting this into 0.4.0-rc.1. For 0.5.0 we'll be moving the generators to a new project that isn't yet created but will be specific for the phoenix app structure.
In this case I'm thinking that the module should be MyApp.SearchLive.SwiftUI.Index thoughts?
So far I've been thinking in the frame of "add a .SwiftUI to the end of your module"
I'm currently expecting all the SwiftUI code to be *.swiftui.ex or *.swiftui.neex, so my current naive mental model suggests the module subspace should come at the end too
Imagine your liveview is the module
defmodule MyApp.SearchLive.Index
You run
mix lvn.gen.live swiftui SearchLive.Index
ormix lvn.gen.live swiftui Search
, both have issues with the assumptions the generator makesThis can be made to work manually with some manual renaming of the modules, but I noticed that it wasn't able to find the default
*.neex
file, it complained about a missingrender
function. If you add a manually definedrender
fn to the new file, it will work however.Perhaps one should have to supply the full namespace to the generator command (e.g.,
SearchLive.Index
) instead of the currently desiredSearch
The text was updated successfully, but these errors were encountered: