when I read the disclosureGroup documentation , I see
struct DisclosureGroup<Label, Content> where Label : View, Content : View
in the first part it says label, I dont understand why.
I can put a string and it work,
But
if I put a label I get an error saying it requires that 'Label<Text, Image>' conform to 'StringProtocol'
it get worse (for me :-)
the second part say "where Label : View, Content : View"
for me it says that label conform to view... ?
I tried to put a view, it did not work either , with the same error
if I use the "Jump to definition" of disclosure, I can see this
public init(@ViewBuilder content: @escaping () -> Content, @ViewBuilder label: () -> Label)
then I am totally lost :-)
in label I can see
struct Label<Title, Icon> where Title : View, Icon : View
:-) Title ... a view ?
is there a documentation to help me read documentation :-)
11
0
1.6k