diff --git a/lib/live_view_native/component.ex b/lib/live_view_native/component.ex index 6786488..2370d86 100644 --- a/lib/live_view_native/component.ex +++ b/lib/live_view_native/component.ex @@ -101,7 +101,7 @@ defmodule LiveViewNative.Component do use LiveViewNative.Component, format: :swiftui - import LiveViewNative.Component, only: [csrf_token: 1] + import LiveViewNative.Component, only: [csrf_token: 2] embed_templates "layouts_swiftui/*" end diff --git a/priv/templates/lvn.gen.layout/root.neex b/priv/templates/lvn.gen.layout/root.neex index ab4462a..14f5866 100644 --- a/priv/templates/lvn.gen.layout/root.neex +++ b/priv/templates/lvn.gen.layout/root.neex @@ -1,3 +1,3 @@ -<.csrf_token /> +