shadowfacts.net/site/posts/2022-09-01-liveviewnative.md

1.7 KiB

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 is a library that lets you build native apps backed by Phoenix LiveView. I've been developing the iOS client 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 documentation1 for the Swift package here, including a step-by-step tutorial which walks you through building a complete app with LiveView Native.

We've also developed a simple chat app 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.


  1. This is the first time I've used 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. ↩︎