From e8f100a91b87c54369e678f6ddb3625b81be76d4 Mon Sep 17 00:00:00 2001 From: David Bluestein II Date: Sun, 25 Jun 2023 20:44:49 -0500 Subject: [PATCH 1/2] Updated to use hex.pm for live_view_native and live_view_native_swift_ui for the tutorial --- .../LiveViewNative.docc/Resources/01-01-03-mix.exs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Sources/LiveViewNative/LiveViewNative.docc/Resources/01-01-03-mix.exs b/Sources/LiveViewNative/LiveViewNative.docc/Resources/01-01-03-mix.exs index 445485f9d..dc6a8929a 100644 --- a/Sources/LiveViewNative/LiveViewNative.docc/Resources/01-01-03-mix.exs +++ b/Sources/LiveViewNative/LiveViewNative.docc/Resources/01-01-03-mix.exs @@ -44,10 +44,8 @@ defmodule LvnTutorial.MixProject do {:telemetry_poller, "~> 1.0"}, {:jason, "~> 1.2"}, {:plug_cowboy, "~> 2.5"}, - {:live_view_native, - git: "https://github.com/liveview-native/live_view_native.git", branch: "main"}, - {:live_view_native_swift_ui, - git: "https://github.com/liveview-native/liveview-client-swiftui", branch: "main"} + {:live_view_native, "~> 0.0.8"}, + {:live_view_native_swift_ui, "~> 0.0.8"} ] end From e4942c47965aa807f6c5a68b840eb6bea5307528 Mon Sep 17 00:00:00 2001 From: David Bluestein II Date: Thu, 29 Aug 2024 09:15:55 -0400 Subject: [PATCH 2/2] Change references to mix lvn.install --- livebooks/create-a-swiftui-application.livemd | 2 +- livebooks/forms-and-validation.livemd | 2 +- livebooks/markdown/create-a-swiftui-application.md | 2 +- livebooks/markdown/forms-and-validation.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/livebooks/create-a-swiftui-application.livemd b/livebooks/create-a-swiftui-application.livemd index f7777d41c..ef6bfd4b8 100644 --- a/livebooks/create-a-swiftui-application.livemd +++ b/livebooks/create-a-swiftui-application.livemd @@ -66,7 +66,7 @@ Mix.install( This guide will teach you how to set up a SwiftUI Application for LiveView Native. -Typically, we recommend using the `mix lvn.install` task as described in [Getting Started](https://hexdocs.pm/live_view_native/readme.html#getting-started) to add LiveView Native to a Phoenix project. However, we will walk through the steps of manually setting up an Xcode iOS project to learn how the iOS side of a LiveView Native application works. +Typically, we recommend using the `mix lvn.setup` task as described in [Getting Started](https://hexdocs.pm/live_view_native/readme.html#getting-started) to add LiveView Native to a Phoenix project. However, we will walk through the steps of manually setting up an Xcode iOS project to learn how the iOS side of a LiveView Native application works. In future lessons, you'll use this iOS application to view iOS examples in the Xcode simulator (or a physical device if you prefer.) diff --git a/livebooks/forms-and-validation.livemd b/livebooks/forms-and-validation.livemd index a6db55e8a..28d47a927 100644 --- a/livebooks/forms-and-validation.livemd +++ b/livebooks/forms-and-validation.livemd @@ -89,7 +89,7 @@ Follow the [LiveView Native Form Installation Guide](https://github.com/liveview ## Creating a Basic Form -The LiveView Native `mix lvn.install` task generates a [core_components.swiftui.ex](https://github.com/liveview-native/liveview-client-swiftui/blob/main/priv/templates/lvn.swiftui.gen/core_components.ex) file for native SwiftUI function components similar to the [core_components.ex](https://github.com/phoenixframework/phoenix/blob/main/priv/templates/phx.gen.live/core_components.ex) file generated in a traditional phoenix application for web function components. +The LiveView Native `mix lvn.setup.gen` task generates a [core_components.swiftui.ex](https://github.com/liveview-native/liveview-client-swiftui/blob/main/priv/templates/lvn.swiftui.gen/core_components.ex) file for native SwiftUI function components similar to the [core_components.ex](https://github.com/phoenixframework/phoenix/blob/main/priv/templates/phx.gen.live/core_components.ex) file generated in a traditional phoenix application for web function components. See Phoenix's [Components and HEEx](https://hexdocs.pm/phoenix/components.html) HexDoc documentation if you need a primer on function components. diff --git a/livebooks/markdown/create-a-swiftui-application.md b/livebooks/markdown/create-a-swiftui-application.md index 0b6884bb7..30ccc83fd 100644 --- a/livebooks/markdown/create-a-swiftui-application.md +++ b/livebooks/markdown/create-a-swiftui-application.md @@ -6,7 +6,7 @@ This guide will teach you how to set up a SwiftUI Application for LiveView Native. -Typically, we recommend using the `mix lvn.install` task as described in [Getting Started](https://hexdocs.pm/live_view_native/readme.html#getting-started) to add LiveView Native to a Phoenix project. However, we will walk through the steps of manually setting up an Xcode iOS project to learn how the iOS side of a LiveView Native application works. +Typically, we recommend using the `mix lvn.setup` task as described in [Getting Started](https://hexdocs.pm/live_view_native/readme.html#getting-started) to add LiveView Native to a Phoenix project. However, we will walk through the steps of manually setting up an Xcode iOS project to learn how the iOS side of a LiveView Native application works. In future lessons, you'll use this iOS application to view iOS examples in the Xcode simulator (or a physical device if you prefer.) diff --git a/livebooks/markdown/forms-and-validation.md b/livebooks/markdown/forms-and-validation.md index 56eb715f2..df135d443 100644 --- a/livebooks/markdown/forms-and-validation.md +++ b/livebooks/markdown/forms-and-validation.md @@ -16,7 +16,7 @@ Follow the [LiveView Native Form Installation Guide](https://github.com/liveview ## Creating a Basic Form -The LiveView Native `mix lvn.install` task generates a [core_components.swiftui.ex](https://github.com/liveview-native/liveview-client-swiftui/blob/main/priv/templates/lvn.swiftui.gen/core_components.ex) file for native SwiftUI function components similar to the [core_components.ex](https://github.com/phoenixframework/phoenix/blob/main/priv/templates/phx.gen.live/core_components.ex) file generated in a traditional phoenix application for web function components. +The LiveView Native `mix lvn.setup.gen` task generates a [core_components.swiftui.ex](https://github.com/liveview-native/liveview-client-swiftui/blob/main/priv/templates/lvn.swiftui.gen/core_components.ex) file for native SwiftUI function components similar to the [core_components.ex](https://github.com/phoenixframework/phoenix/blob/main/priv/templates/phx.gen.live/core_components.ex) file generated in a traditional phoenix application for web function components. See Phoenix's [Components and HEEx](https://hexdocs.pm/phoenix/components.html) HexDoc documentation if you need a primer on function components.