Aben's Blog

vuePress-theme-reco Aben    2020 - 2025
Aben's Blog Aben's Blog

Choose mode

  • dark
  • auto
  • light
Home
Category
  • Docker
  • Node.js
  • golang
  • iOS
  • macOS
Tag
TimeLine
More
  • GitHub
  • Backend
author-avatar

Aben

21

Article

24

Tag

Home
Category
  • Docker
  • Node.js
  • golang
  • iOS
  • macOS
Tag
TimeLine
More
  • GitHub
  • Backend

SwiftUI ContextMenu cliped with contentShape

vuePress-theme-reco Aben    2020 - 2025

SwiftUI ContextMenu cliped with contentShape

Aben 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