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

Rich Popover

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

A profile-preview popover.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

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

import SwiftUI

struct PopoverRich: View { var body: some View { VStack(spacing: -2) { HStack(spacing: 10) { Image("person_3").resizable().scaledToFill().frame(width: 40, height: 40).clipShape(Circle()); VStack(alignment: .leading, spacing: 2) { Text("Mia Chen").font(.system(size: 14, weight: .semibold)); Text("Product Designer · Online").font(.system(size: 12)).foregroundStyle(.secondary) }; Spacer() }.padding(12).frame(width: 240).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 · 1 dependencies

Dependencies

SwiftUI
  • person_3 (image asset)

Requires iOS 17