overlays Components
Overlay Components
Components that appear above other content, including popovers and context menus. Perfect for displaying additional information or actions without navigating away from the current screen.
2 components available
P
DSPopover
Anchored floating panel with an arrow pointing to its trigger. Contains rich content — not just text.
v2.0·iOS 17+
C
DSContextMenu
Long-press context menu with icon-labelled actions. Wraps the native contextMenu with DS token styling.
v2.0·iOS 17+
Quick Import Reference
swift
// Package.swift
.package(url: "https://github.com/luizmellodev/SwiftDS-package", from: "2.0.0")
// In any SwiftUI file
import SwiftDS
struct MyView: View {
var body: some View {
VStack(spacing: DSSpacing.md) {
// Use any overlays component here
}
}
}