From 6b07977a36ca2d7fb5836980111ab415537fab7a Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 1 Sep 2022 13:15:53 -0400 Subject: [PATCH] Add LiveView Native --- site/posts/2022-09-01-liveviewnative.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 site/posts/2022-09-01-liveviewnative.md diff --git a/site/posts/2022-09-01-liveviewnative.md b/site/posts/2022-09-01-liveviewnative.md new file mode 100644 index 0000000..3db56ec --- /dev/null +++ b/site/posts/2022-09-01-liveviewnative.md @@ -0,0 +1,20 @@ +``` +metadata.title = "LiveView Native" +metadata.tags = ["elixir", "swift"] +metadata.date = "2022-09-01 12:30:42 -0400" +metadata.shortDesc = "An iOS SwiftUI client for Phoenix LiveView." +metadata.slug = "liveviewnative" +``` + +I'm very excited for the project I've been working on all year to finally be public. [LiveView Native](https://native.live) is a library that lets you build native apps backed by [Phoenix LiveView](https://github.com/phoenixframework/phoenix_live_view). I've been developing the [iOS client](https://github.com/liveviewnative/liveview-client-swiftui) which is backed by SwiftUI. + +Using LiveView Native lets avoid duplicating business logic on the frontend and save time on implementing dedicated APIs for native apps. The iOS client can be integrated into any existing app by using a single SwiftUI view, so it's easy to adopt it for just a single screen at a time. + +You can find the documentation[^1] for the Swift package [here](https://liveviewnative.github.io/liveview-client-swiftui/documentation/phoenixliveviewnative/), including a step-by-step [tutorial](https://liveviewnative.github.io/liveview-client-swiftui/tutorials/yourfirstapp) which walks you through building a complete app with LiveView Native. + +[^1]: This is the first time I've used [DocC](https://developer.apple.com/documentation/docc) and it has been largely excellent. It's made it very easy to produce nice-looking and well-organized documentation. And the tutorial mechanism has been very useful. + +We've also developed a simple [chat app](https://github.com/liveviewnative/elixirconf_chat) which was used by the attendees of ElixirConf this year, and serves as a complete example of a LiveView Native app. + +I'm very excited to see what people build with it. +