File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
lib/live_view_native_swift_ui/modifiers Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ defmodule LiveViewNativeSwiftUi.Modifiers.ImageScale do
55 field :scale , Ecto.Enum , values: ~w( small medium large) a
66 end
77
8- def params ( scale ) when is_atom ( scale ) and not is_boolean ( scale ) and not is_nil ( scale ) , do: [ scale: scale ]
8+ def params ( scale ) when is_atom ( scale ) and not is_boolean ( scale ) and not is_nil ( scale ) , do: [ scale: scale ]
99 def params ( params ) , do: params
1010end
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ defmodule LiveViewNativeSwiftUi.Modifiers.ZIndex do
55 field :value , :float
66 end
77
8- def params ( z_index ) when is_float ( z_index ) , do: [ z_index: z_index ]
8+ def params ( value ) when is_number ( value ) , do: [ value: value ]
99 def params ( params ) , do: params
1010end
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ defmodule LiveViewNativeSwiftUi.Modifiers.Opacity do
55 field :opacity , :float
66 end
77
8- def params ( opacity ) when is_float ( opacity ) , do: [ opacity: opacity ]
8+ def params ( opacity ) when is_number ( opacity ) , do: [ opacity: opacity ]
99 def params ( params ) , do: params
1010end
You can’t perform that action at this time.
0 commit comments