Closed bcardarella closed 8 months ago
I realize this presents two words that can't be used in assigns
. We could do
def(%{native: %{platform: plaform, target: target}} = assigns)
or even better:
def render(%{platform: :swiftui, target: :watchos} = assigns.native)
@bcardarella @AZholtkevych This format is actually determined by https://github.com/liveview-native/live_view_native and not the Swift client, so I think this issue should be moved there.
@supernintendo I'm suggesting that we send it in a normalized fashion from the client rather than correcting it in Elixir
When the client connects it sends over:
Instead the client should move over to this form:
now we can simply do things like: