Skip to content

Commit 7a9a153

Browse files
authored
Use correct key for keyboard_type modifier in TextField docs (#1067)
1 parent 6e9ae8e commit 7a9a153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LiveViewNative/Views/Text Input and Output/TextField.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import SwiftUI
3535
/// @native
3636
/// |> autocorrection_disabled(disable: true)
3737
/// |> text_input_autocapitalization(autocapitalization: :words)
38-
/// |> keyboard_type(type: :web_search)
38+
/// |> keyboard_type(keyboard_type: :web_search)
3939
/// |> submit_label(submit_label: :search)
4040
/// }
4141
/// >
@@ -52,7 +52,7 @@ import SwiftUI
5252
/// value-binding="amount"
5353
/// format="currency"
5454
/// currency-code="usd"
55-
/// modifier={@native |> keyboard_type(type: :decimal_pad)}
55+
/// modifier={@native |> keyboard_type(keyboard_type: :decimal_pad)}
5656
/// >
5757
/// Enter Amount
5858
/// </TextField>

0 commit comments

Comments
 (0)