This is my struct view for the overflow menu
struct OverflowMenu: View {
var body: some View {
Menu {
NavigationLink(destination: SettingView()) {
Label{
Text("Settings")
}
icon: {
Awesome.Solid.cog.image
.foregroundColor(UIColor(hex: "#ffbd16"))
}
}
} label: {
Image(systemName: "ellipsis.circle")
}
}
}
Nothing happens when the button is clicked. The SettingsView is not shown in a new window. And the OverflowMenuView() is inside the NavigationView. Am i missing something else?
var body: some View {
NavigationView {
.....
HStack {
Spacer()
OverflowMenu()
}
}
}