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

Dark Tooltip

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

A dark tooltip with an arrow.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

TooltipDark.swift
// Dark Tooltip · syxUI · https://syxui.dev/components/tip-dark
// 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 TooltipDark: View { var body: some View { VStack(spacing: -2) { Text("Tap to edit your profile").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