
Payment Message
From syxUI — written for both platforms, not translated between them.
A money-sent card (Apple Cash / Venmo pattern).
Chat · SwiftUI · iOS 17
- chat
- swiftui
The actual source
ChatPayment.swift
// Payment Message · syxUI · https://syxui.dev/components/chat-payment
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Payment message
struct ChatPayment: View {
let green = Color(red: 0.16, green: 0.66, blue: 0.40)
var body: some View {
HStack {
Spacer(minLength: 44)
VStack(spacing: 8) {
Text("$25").font(.system(size: 30, weight: .bold)).foregroundStyle(.white)
Text("Payment Sent").font(.system(size: 13, weight: .medium)).foregroundStyle(.white.opacity(0.9))
Text("For dinner").font(.system(size: 12)).foregroundStyle(.white.opacity(0.7))
}
.padding(.horizontal, 30).padding(.vertical, 18)
.background(LinearGradient(colors: [green, green.opacity(0.8)], startPoint: .top, endPoint: .bottom), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


