
CTA Callout
From syxUI — written for both platforms, not translated between them.
A callout with a call-to-action.
Feedback · SwiftUI · iOS 17
- feedback
- swiftui
The actual source
CalloutCTA.swift
// CTA Callout · syxUI · https://syxui.dev/components/tip-cta
// 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 CalloutCTA: View { var body: some View { VStack(spacing: -2) { Image(systemName: "arrowtriangle.up.fill").font(.system(size: 12)).foregroundStyle(ttDark); VStack(alignment: .leading, spacing: 8) { Text("Upgrade to unlock this feature").font(.system(size: 14, weight: .medium)).foregroundStyle(.white); Text("Go Pro").font(.system(size: 13, weight: .semibold)).foregroundStyle(.black).padding(.horizontal, 16).padding(.vertical, 7).background(.white, in: Capsule()) }.padding(14).frame(width: 230, alignment: .leading).background(ttDark, in: RoundedRectangle(cornerRadius: 14, style: .continuous)) } } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


