Skip to content

Commit c7cce3e

Browse files
committed
Add visionOS-specific button-like plain style for menus
1 parent 13ec689 commit c7cce3e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/LinksKit/Views/LinkSectionsView.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ struct LinkSectionsView: View {
1616
}
1717

1818
case .menu(let menu):
19-
Menu(menu.title, systemImage: menu.systemImage) {
19+
Menu {
2020
LinkSectionsView(linkSections: menu.linkSections)
21+
} label: {
22+
Label(menu.title, systemImage: menu.systemImage)
23+
#if os(visionOS)
24+
.padding(20)
25+
#endif
2126
}
27+
#if os(visionOS)
28+
.padding(-20)
29+
.buttonStyle(.plain)
30+
#endif
2231
}
2332
}
2433
} header: {

0 commit comments

Comments
 (0)