We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff6180b + e5a51f5 commit 577f956Copy full SHA for 577f956
lib/live_view_native_swift_ui/types/encoded_modifier_stack.ex
@@ -2,8 +2,8 @@ defmodule LiveViewNativeSwiftUi.Types.EncodedModifierStack do
2
use LiveViewNativePlatform.Modifier.Type
3
def type, do: :string
4
5
- def cast(value) when is_struct(value, LiveViewNativePlatform.Context) do
6
- {:ok, Jason.encode!(value.modifiers)}
+ def cast(%LiveViewNativeSwiftUi.Modifiers{} = modifiers) do
+ {:ok, Jason.encode!(modifiers)}
7
end
8
def cast(_), do: :error
9
0 commit comments