Skip to content
Beacon Hint preview
Rendered from the SwiftUI source on this page.

Beacon Hint

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

A pulsing beacon with a hint.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

BeaconHint.swift
// Beacon Hint · syxUI · https://syxui.dev/components/tip-beacon
// 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 BeaconHint: View { var body: some View { HStack(spacing: 10) { ZStack { Circle().fill(ttBlue.opacity(0.2)).frame(width: 24, height: 24); Circle().fill(ttBlue.opacity(0.4)).frame(width: 16, height: 16); Circle().fill(ttBlue).frame(width: 9, height: 9) }; Text("New feature available here").font(.system(size: 14, weight: .medium)); Spacer() }.padding(.horizontal, 14).padding(.vertical, 10).frame(width: 280).background(ttBlue.opacity(0.08), in: Capsule()) } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17