
Icon Tooltip
From syxUI — written for both platforms, not translated between them.
A tooltip with a leading icon.
Feedback · SwiftUI · iOS 17
- feedback
- swiftui
The actual source
TooltipIcon.swift
// Icon Tooltip · syxUI · https://syxui.dev/components/tip-icon
// 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 TooltipIcon: View { var body: some View { VStack(spacing: -2) { HStack(spacing: 6) { Image(systemName: "lock.fill").font(.system(size: 11)); Text("End-to-end encrypted").font(.system(size: 13, weight: .medium)) }.foregroundStyle(.white).padding(.horizontal, 12).padding(.vertical, 9).background(ttDark, in: RoundedRectangle(cornerRadius: 10)); Image(systemName: "arrowtriangle.down.fill").font(.system(size: 12)).foregroundStyle(ttDark) } } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


