
Popover Menu
From syxUI — written for both platforms, not translated between them.
A menu popover with an arrow.
Feedback · SwiftUI · iOS 17
- feedback
- swiftui
The actual source
PopoverMenu.swift
// Popover Menu · syxUI · https://syxui.dev/components/tip-menu
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
struct PopoverMenu: View { var body: some View { VStack(spacing: -2) { Image(systemName: "arrowtriangle.up.fill").font(.system(size: 12)).foregroundStyle(Color(.systemBackground)); VStack(spacing: 0) { ForEach(Array([("Profile", "person"), ("Settings", "gearshape"), ("Sign Out", "rectangle.portrait.and.arrow.right")].enumerated()), id: \.offset) { i, m in HStack(spacing: 10) { Image(systemName: m.1).font(.system(size: 14)).foregroundStyle(.secondary).frame(width: 20); Text(m.0).font(.system(size: 14)); Spacer() }.padding(.horizontal, 14).padding(.vertical, 10); if i < 2 { Divider() } } }.frame(width: 190).background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 14, style: .continuous)).overlay(RoundedRectangle(cornerRadius: 14, style: .continuous).stroke(Color.primary.opacity(0.07), lineWidth: 1)).shadow(color: .black.opacity(0.08), radius: 12, y: 4) } } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


