Skip to content
Titled Tooltip preview
Rendered from the SwiftUI source on this page.

Titled Tooltip

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

A tooltip with a title and description.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

TooltipTitle.swift
// Titled Tooltip · syxUI · https://syxui.dev/components/tip-title
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

let ttDark = Color(red: 0.15, green: 0.15, blue: 0.17)

struct TooltipTitle: View { var body: some View { VStack(spacing: -2) { VStack(alignment: .leading, spacing: 3) { Text("Auto-save").font(.system(size: 13, weight: .semibold)).foregroundStyle(.white); Text("Your work saves as you type.").font(.system(size: 12)).foregroundStyle(.white.opacity(0.75)) }.padding(12).frame(width: 200, alignment: .leading).background(ttDark, in: RoundedRectangle(cornerRadius: 12)); Image(systemName: "arrowtriangle.down.fill").font(.system(size: 12)).foregroundStyle(ttDark) } } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17