Skip to content

Commit b2b7016

Browse files
Merge pull request #1115 from liveview-native/platform-updates
Elixir platform updates
2 parents 2a3df0b + 3ea01f6 commit b2b7016

File tree

335 files changed

+1003
-605
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+1003
-605
lines changed

Sources/LiveViewNative/Image Modifiers/AntialiasedModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import SwiftUI
1010
/// Enables/disables antialiasing.
1111
///
1212
/// ```html
13-
/// <Image system-name="heart.fill" modifiers={antialiased(@native, is_active: true)} />
13+
/// <Image system-name="heart.fill" modifiers={antialiased(true)} />
1414
/// ```
1515
///
1616
/// ## Arguments

Sources/LiveViewNative/Image Modifiers/InterpolationModifier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import SwiftUI
1515
/// ```html
1616
/// <Image
1717
/// name="dot_green"
18-
/// modifiers={@native |> resizable() |> interpolation(interpolation: :none)}
18+
/// modifiers={resizable([]) |> interpolation(:none)}
1919
/// />
2020
/// <Image
2121
/// name="dot_green"
22-
/// modifiers={@native |> resizable() |> interpolation(interpolation: :medium)}
22+
/// modifiers={resizable([]) |> interpolation(:medium)}
2323
/// />
2424
/// ```
2525
///

Sources/LiveViewNative/Image Modifiers/RenderingModeModifier.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import SwiftUI
1313
/// The `template` mode renders nontransparent pixels as the foreground color.
1414
///
1515
/// ```html
16-
/// <Image name="dot_green" modifiers={rendering_mode(@native, mode: :original)} />
17-
/// <Image name="dot_green" modifiers={rendering_mode(@native, mode: :template)} />
16+
/// <Image name="dot_green" modifiers={rendering_mode(:original)} />
17+
/// <Image name="dot_green" modifiers={rendering_mode(:template)} />
1818
/// ```
1919
///
2020
/// This modifier can also be used to render multicolor SF Symbols.
@@ -23,7 +23,7 @@ import SwiftUI
2323
/// ```html
2424
/// <Image
2525
/// system-name="person.crop.circle.badge.plus"
26-
/// modifiers={rendering_mode(@native, mode: :original)}
26+
/// modifiers={rendering_mode(:original)}
2727
/// />
2828
/// ```
2929
///

Sources/LiveViewNative/Image Modifiers/ResizableModifier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import SwiftUI
1010
/// Enables an image to fill the available space.
1111
///
1212
/// ```html
13-
/// <Image system-name="heart.fill" modifiers={resizable(@native)} />
14-
/// <Image system-name="heart.fill" modifiers={resizable(@native, resizing_mode: :tile)} />
13+
/// <Image system-name="heart.fill" modifiers={resizable([])} />
14+
/// <Image system-name="heart.fill" modifiers={resizable(resizing_mode: :tile)} />
1515
/// ```
1616
///
1717
/// ## Arguments

Sources/LiveViewNative/Modifiers/Animations Modifiers/AnimationModifier.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import SwiftUI
1616
///
1717
/// ```html
1818
/// <Rectangle
19-
/// modifiers={animation(@native, value: @color)}
20-
/// fill-color={@color}
19+
/// modifiers={animation(value: @color)}
20+
/// fill-color={@color}
2121
/// />
2222
/// ```
2323
///
@@ -27,8 +27,8 @@ import SwiftUI
2727
///
2828
/// ```html
2929
/// <Rectangle
30-
/// modifiers={animation(@native, animation: :ease_out, value: @color)}
31-
/// fill-color={@color}
30+
/// modifiers={animation(animation: :ease_out, value: @color)}
31+
/// fill-color={@color}
3232
/// />
3333
/// ```
3434
///

Sources/LiveViewNative/Modifiers/Animations Modifiers/ContentTransitionModifier.swift

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ import SwiftUI
1313
///
1414
/// ```html
1515
/// <Text
16-
/// modifiers={
17-
/// @native
18-
/// |> content_transition(transition: :numeric_text)
19-
/// |> animation(value: @count)
20-
/// }
16+
/// modifiers={
17+
/// content_transition(:numeric_text)
18+
/// |> animation(value: @count)
19+
/// }
2120
/// >
22-
/// <%= @count %>
21+
/// <%= @count %>
2322
/// </Text>
2423
/// ```
2524
///

Sources/LiveViewNative/Modifiers/Animations Modifiers/KeyframeAnimatorModifier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ import SwiftUI
1919
/// <Image
2020
/// system-name="heart.fill"
2121
/// modifiers={
22-
/// @native |> keyframe_animator(
22+
/// keyframe_animator(
2323
/// initial_value: 1.0,
2424
/// trigger: "#{@liked}",
2525
/// keyframes: [
2626
/// {:linear, 1.0, [duration: 0.36]},
2727
/// {:spring, 1.5, [duration: 0.8, spring: :bouncy]},
2828
/// {:spring, 1.0, [spring: :bouncy]}
2929
/// ],
30-
/// modifiers: @native |> scale_effect(x: 1.0, y: 1.0),
30+
/// modifiers: scale_effect(x: 1.0, y: 1.0),
3131
/// properties: [scale_effect: [:x, :y]]
3232
/// )
3333
/// }

Sources/LiveViewNative/Modifiers/Animations Modifiers/MatchedGeometryEffectModifier.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import SwiftUI
2121
/// Use the same `id` argument for elements that should be paired.
2222
///
2323
/// ```html
24-
/// <VStack modifiers={@native |> animation(value: Atom.to_string(@is_flipped))}>
24+
/// <VStack modifiers={animation(value: Atom.to_string(@is_flipped))}>
2525
/// <%= if @is_flipped do %>
26-
/// <Text id="a" modifiers={@native |> matched_geometry_effect(id: "a", namespace: :animation)}>A</Text>
27-
/// <Text id="b" modifiers={@native |> matched_geometry_effect(id: "b", namespace: :animation)}>B</Text>
26+
/// <Text id="a" modifiers={matched_geometry_effect(id: "a", namespace: :animation)}>A</Text>
27+
/// <Text id="b" modifiers={matched_geometry_effect(id: "b", namespace: :animation)}>B</Text>
2828
/// <% else %>
29-
/// <Text id="b" modifiers={@native |> matched_geometry_effect(id: "b", namespace: :animation)}>B</Text>
30-
/// <Text id="a" modifiers={@native |> matched_geometry_effect(id: "a", namespace: :animation)}>A</Text>
29+
/// <Text id="b" modifiers={matched_geometry_effect(id: "b", namespace: :animation)}>B</Text>
30+
/// <Text id="a" modifiers={matched_geometry_effect(id: "a", namespace: :animation)}>A</Text>
3131
/// <% end %>
3232
/// <Button phx-click="flip">Flip</Button>
3333
/// </VStack>

Sources/LiveViewNative/Modifiers/Animations Modifiers/TransitionModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import SwiftUI
1313
///
1414
/// ```html
1515
/// <%= if @show do %>
16-
/// <Text modifiers={transition(@native, transition: :scale)}>Scaled</Text>
16+
/// <Text modifiers={transition(:scale)}>Scaled</Text>
1717
/// <% end %>
1818
/// ```
1919
///

Sources/LiveViewNative/Modifiers/Controls and Indicators Modifiers/ButtonBorderShapeModifier.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import SwiftUI
1010
/// Alters the shape of any bordered buttons' borders.
1111
///
1212
/// ```html
13-
/// <Button modifiers={button_style(@native, style: :bordered) |> button_border_shape(shape: :capsule)}>
13+
/// <Button modifiers={button_style(:bordered) |> button_border_shape(:capsule)}>
1414
/// Capsule
1515
/// </Button>
16-
/// <Button modifiers={button_style(@native, style: :bordered) |> button_border_shape(shape: :rounded_rectangle, radius: 15)}>
16+
/// <Button modifiers={button_style(:bordered) |> button_border_shape(shape: :rounded_rectangle, radius: 15)}>
1717
/// Rounded rectangle
1818
/// </Button>
1919
/// ```

0 commit comments

Comments
 (0)