Buttons not working on SideMenuView

Hello good morning.

I am trying to make an application and in the homescreen I have a SideBar and inside several buttons.
I can not get the buttons to work. Also I get this error in console when I run it "NavigationLink presenting a value must appear inside a NavigationStack or NavigationSplitView. Link will be disabled." but I can't solve the error.

I hope you can help me

ContentView.swift:
https://pastebin.com/gbYSHPis

SideMenuView.swift
https://pastebin.com/FBvrgLmn
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?