lib/live_view_native_swift_ui/modifiers/tables/table_style.ex
defmodule LiveViewNativeSwiftUi.Modifiers.TableStyle do
use LiveViewNativePlatform.Modifier
modifier_schema "table_style" do
field :style, Ecto.Enum, values: ~w(
automatic
inset
inset_alternates_row_backgrounds
bordered
bordered_alternates_row_backgrounds
)a
end
def params(style) when is_atom(style) and not is_boolean(style) and not is_nil(style), do: [style: style]
def params(params), do: params
end