-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Grid/GridRow #182
Conversation
Modifiers are implemented on the Elixir side here: liveview-native/live_view_native_swift_ui#7. <grid alignment="leading">
<grid-row>
<text modifiers={@native |> grid_column_alignment(guide: :trailing)}>Regular font:</text>
<text>Helvetica 12</text>
<button>Select...</button>
</grid-row>
<grid-row>
<text>Fixed-width font:</text>
<text>Menlo Regular 11</text>
<button>Select...</button>
</grid-row>
<grid-row alignment="bottom">
<rectangle fill-color="system-clear" modifiers={@native |> grid_cell_unsized_axes(axes: :all)} />
<toggle modifiers={@native |> grid_cell_columns(count: 2)}>
Use fixed-width font for new documents
</toggle>
</grid-row>
</grid> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good, but the dividers in your example template don't seem to be present in the screenshot. Are they actually not appearing, or was the template/screenshot just out of sync?
Closes #97 and #98.
TODO
A few modifiers need to be implemented: