Skip to content
Action Popover preview
Rendered from the SwiftUI source on this page.

Action Popover

From syxUI — written for both platforms, not translated between them.

A quick-actions popover.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

PopoverActions.swift
// Action Popover · syxUI · https://syxui.dev/components/tip-actions
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

struct PopoverActions: View { var body: some View { VStack(spacing: -2) { HStack(spacing: 0) { ForEach(Array([("Reply", "arrowshape.turn.up.left"), ("Forward", "arrowshape.turn.up.right"), ("Copy", "doc.on.doc")].enumerated()), id: \.offset) { i, a in VStack(spacing: 4) { Image(systemName: a.1).font(.system(size: 16)); Text(a.0).font(.system(size: 11)) }.foregroundStyle(.primary).frame(width: 66).padding(.vertical, 12); if i < 2 { Divider().frame(height: 40) } } }.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); Image(systemName: "arrowtriangle.down.fill").font(.system(size: 12)).foregroundStyle(Color(.systemBackground)).offset(y: -1) } } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17