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

Info Popover

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

An info popover from a ? trigger.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

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

import SwiftUI

let ttBlue = Color(red: 0.0, green: 0.47, blue: 1.0)

struct InfoPopover: View { var body: some View { VStack(spacing: -2) { HStack(spacing: 8) { Image(systemName: "info.circle.fill").font(.system(size: 15)).foregroundStyle(ttBlue); Text("Your data is never shared with third parties.").font(.system(size: 13)).frame(width: 190, alignment: .leading) }.padding(12).background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 12, style: .continuous)).overlay(RoundedRectangle(cornerRadius: 12, style: .continuous).stroke(Color.primary.opacity(0.08), lineWidth: 1)).shadow(color: .black.opacity(0.08), radius: 10, y: 3); 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