Skip to content
Feature Callout preview
Rendered from the SwiftUI source on this page.

Feature Callout

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

A gradient new-feature callout.

Feedback · SwiftUI · iOS 17

  • feedback
  • swiftui

The actual source

FeatureCallout.swift
// Feature Callout · syxUI · https://syxui.dev/components/tip-feature
// 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)
let ttPurple = Color(red: 0.55, green: 0.40, blue: 0.90)

struct FeatureCallout: View { var body: some View { VStack(spacing: -2) { HStack(spacing: 10) { Image(systemName: "sparkles").font(.system(size: 16)).foregroundStyle(.white); VStack(alignment: .leading, spacing: 1) { Text("New: Dark Mode").font(.system(size: 14, weight: .semibold)).foregroundStyle(.white); Text("Try it in Settings").font(.system(size: 12)).foregroundStyle(.white.opacity(0.85)) }; Spacer(); Image(systemName: "arrow.right").font(.system(size: 13, weight: .semibold)).foregroundStyle(.white) }.padding(14).frame(width: 270).background(LinearGradient(colors: [ttPurple, ttBlue], startPoint: .leading, endPoint: .trailing), in: RoundedRectangle(cornerRadius: 14, style: .continuous)); Image(systemName: "arrowtriangle.down.fill").font(.system(size: 12)).foregroundStyle(ttBlue) } } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17