
Accent Tooltip
From syxUI — written for both platforms, not translated between them.
A colored accent tooltip.
Feedback · SwiftUI · iOS 17
- feedback
- swiftui
The actual source
TooltipBlue.swift
// Accent Tooltip · syxUI · https://syxui.dev/components/tip-blue
// 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 TooltipBlue: View { var body: some View { VStack(spacing: -2) { Text("You have 3 new messages").font(.system(size: 13, weight: .semibold)).foregroundStyle(.white).padding(.horizontal, 12).padding(.vertical, 9).background(ttBlue, in: RoundedRectangle(cornerRadius: 10)); Image(systemName: "arrowtriangle.down.fill").font(.system(size: 12)).foregroundStyle(ttBlue) } } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


