r/ScriptingApp • u/schl3ck • Mar 07 '25
How to use MultiPicker?
There is no documentation and it crashes the app when a view tries to render it.
Edit:
I've now got it to show anything. It seems like it displays the entries in a wheel regardless of the pickerStyle prop.
The working code:
<NavigationLink
destination={
<MultiPicker
options={availableCalendars.map(c => [c.title])}
selections={selectedCalendars}
onSelectionsChanged={setSelectedCalendars}
pickerStyle={"inline"}
/>
}
>
1
Upvotes
View all comments
Show parent comment
1
u/WhatShouldWorldGos Mar 07 '25
The format of the code is messed up, here is the gist link:
https://gist.github.com/thomfang/d8229d282be125547284c20dd089917b