
Nudge Tip
From syxUI — written for both platforms, not translated between them.
A dismissible did-you-know tip.
Feedback · SwiftUI · iOS 17
- feedback
- swiftui
The actual source
NudgeTip.swift
// Nudge Tip · syxUI · https://syxui.dev/components/tip-nudge
// 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 NudgeTip: View { var body: some View { HStack(spacing: 12) { Image(systemName: "hand.point.up.left.fill").font(.system(size: 18)).foregroundStyle(ttBlue); VStack(alignment: .leading, spacing: 2) { Text("Did you know?").font(.system(size: 14, weight: .semibold)); Text("You can pin your favorite chats to the top.").font(.system(size: 12)).foregroundStyle(.secondary) }; Spacer(); Image(systemName: "xmark").font(.system(size: 12, weight: .bold)).foregroundStyle(.secondary) }.padding(14).frame(width: 320).background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 14, style: .continuous)).overlay(RoundedRectangle(cornerRadius: 14, style: .continuous).stroke(Color.primary.opacity(0.08), lineWidth: 1)).shadow(color: .black.opacity(0.05), radius: 12, y: 4) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


