SwiftUI ContextMenu cliped with contentShape

NaN-0NaN-0NaN 0NaN:0NaN:0NaN SwiftUI

                                .contentShape(RoundedRectangle(cornerRadius: 16, style: .continuous))
                                .contextMenu(ContextMenu(menuItems: {
                                    Button {
                                    } label: {
                                        HStack {
                                            Text("Save Image")
                                                .padding(20)
                                            Image(systemName: "square.and.arrow.down")
                                                .resizable()
                                                .font(.title)
                                        }
                                    }
                                }))
                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Powered By Valine
v1.5.2