Skip to content

Commit d0ebd82

Browse files
committed
Use updated PlatformImeOptions API in iOS demo example
1 parent 7b670ff commit d0ebd82

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

compose/mpp/demo/src/uikitMain/kotlin/androidx/compose/mpp/demo/IosImeOptionsExample.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,31 +94,31 @@ private val autocapitalizationTypes = listOf(
9494
private val IosImeOptionsKeyboardTypeExample = Screen.Example("Keyboard Type") {
9595
LazyColumn {
9696
items(keyboardTypes) {
97-
Item(it.first, PlatformImeOptions(keyboardType = it.second))
97+
Item(it.first, PlatformImeOptions { keyboardType(it.second) })
9898
}
9999
}
100100
}
101101

102102
private val IosImeOptionsKeyboardAppearanceExample = Screen.Example("Keyboard Appearance") {
103103
LazyColumn {
104104
items(keyboardAppearances) {
105-
Item(it.first, PlatformImeOptions(keyboardAppearance = it.second))
105+
Item(it.first, PlatformImeOptions { keyboardAppearance(it.second) })
106106
}
107107
}
108108
}
109109

110110
private val IosImeOptionsReturnKeyTypeExample = Screen.Example("Return Key Type") {
111111
LazyColumn {
112112
items(returnKeyTypes) {
113-
Item(it.first, PlatformImeOptions(returnKeyType = it.second))
113+
Item(it.first, PlatformImeOptions { returnKeyType(it.second) })
114114
}
115115
}
116116
}
117117

118118
private val IosImeOptionsIsSecureTextEntryExample = Screen.Example("Is Secure Text Entry") {
119119
LazyColumn {
120-
item { Item("Is Secure", PlatformImeOptions(isSecureTextEntry = true)) }
121-
item { Item("Is Not Secure", PlatformImeOptions(isSecureTextEntry = false)) }
120+
item { Item("Is Secure", PlatformImeOptions { isSecureTextEntry(true) }) }
121+
item { Item("Is Not Secure", PlatformImeOptions { isSecureTextEntry(false) }) }
122122
}
123123
}
124124

@@ -127,13 +127,13 @@ private val IosImeOptionsEnablesReturnKeyTypeAutomaticallyExample = Screen.Examp
127127
item {
128128
Item(
129129
"Enables Return Key Type Automatically",
130-
PlatformImeOptions(enablesReturnKeyAutomatically = true)
130+
PlatformImeOptions { enablesReturnKeyAutomatically(true) }
131131
)
132132
}
133133
item {
134134
Item(
135135
"Doesn't Enable Return Key Type Automatically",
136-
PlatformImeOptions(enablesReturnKeyAutomatically = false)
136+
PlatformImeOptions { enablesReturnKeyAutomatically(false) }
137137
)
138138
}
139139
}
@@ -142,15 +142,15 @@ private val IosImeOptionsEnablesReturnKeyTypeAutomaticallyExample = Screen.Examp
142142
private val IosImeOptionsAutocapitalizationTypeExample = Screen.Example("Autocapitalization Type") {
143143
LazyColumn {
144144
items(autocapitalizationTypes) {
145-
Item(it.first, PlatformImeOptions(autocapitalizationType = it.second))
145+
Item(it.first, PlatformImeOptions { autocapitalizationType(it.second) })
146146
}
147147
}
148148
}
149149

150150
private val IosImeOptionsAutocorrectionTypeExample = Screen.Example("Autocapitalization Type") {
151151
LazyColumn {
152152
items(autocorrectionTypes) {
153-
Item(it.first, PlatformImeOptions(autocorrectionType = it.second))
153+
Item(it.first, PlatformImeOptions { autocorrectionType(it.second) })
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)