When swiftui tries to navigate from ContentView to the side menu,
SideMenuView (isOpen:$isOpenSideMenu)
If you write
Missing argument for parameter 'text' in call
and
Insert', text:<#Binding<String>#>'
The error appears.
#Binding<String>
Do you need ?
I added #Binding<String>
, but I don't want to because it's extra.
I don't know what SideMenuView is, but the argument text is not optional.
However, there is also a way to initialize.
SideMenuView(isOpen:$isOpenSideMenu, text:.constant(""))
© 2024 OneMinuteCode. All rights reserved.