# LiveViewNative

[![Build Status](]( [![](]( [![Documentation](](

## About

LiveView Native is a platform for building native applications using [Elixir]( and [Phoenix LiveView]( It allows a single LiveView to serve both web and non-web clients by transforming platform-specific template code into native UIs:

# lib/my_app_web/live/hello_live.ex
defmodule MyAppWeb.HelloLive do
  use Phoenix.LiveView
  use MyAppWeb, :live_view

  @impl true
  def render(%{format: :swiftui} = assigns) do
    # This UI renders on iOS
        Hello native!

  @impl true
  def render(%{} = assigns) do
    # This UI renders on the web
    <div class="flex w-full h-screen items-center">
      <span class="w-full text-center">
        Hello web!

To use LiveView Native in your Phoenix application, follow the instructions in the [getting started guide](

## Learn more

  * Official website:
  * Guides:
  * Docs:
  * Forum:
  * Source: