Skip to content

Commit 49bb69e

Browse files
authored
Replace system image attributes with kebab case to camel case. (#1437)
Fix issue #1436
1 parent 80ffe18 commit 49bb69e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

livebooks/swiftui-views.livemd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ The `Image` element is best for system images such as the built in [SF Symbols](
834834

835835
### System Images
836836

837-
You can use the `system-image` attribute to provide the name of system images to the `Image` element.
837+
You can use the `systemName` attribute to provide the name of system images to the `Image` element.
838838

839839
For the full list of SF Symbols you can download Apple's [Symbols 5](https://developer.apple.com/sf-symbols/) application.
840840

@@ -853,7 +853,7 @@ defmodule ServerWeb.ExampleLive.SwiftUI do
853853

854854
def render(assigns, _interface) do
855855
~LVN"""
856-
<Image system-name="square.and.arrow.up" />
856+
<Image systemName="square.and.arrow.up" />
857857
"""
858858
end
859859
end
@@ -929,7 +929,7 @@ defmodule ServerWeb.ExampleLive.SwiftUI do
929929
def render(assigns, _interface) do
930930
~LVN"""
931931
<Button><Text>Text Button</Text></Button>
932-
<Button><Label system-image="bolt.fill">Icon Button</Label></Button>
932+
<Button><Label systemImage="bolt.fill">Icon Button</Label></Button>
933933
"""
934934
end
935935
end

0 commit comments

Comments
 (0)