
Reply Quote
From syxUI — written for both platforms, not translated between them.
A message quoting the one it replies to, with an accent strip.
Chat · SwiftUI · iOS 17
- chat
- swiftui
The actual source
ChatReplyQuote.swift
// Reply Quote · syxUI · https://syxui.dev/components/chat-reply
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Reply / quoted message
struct ChatReplyQuote: View {
let blue = Color(red: 0.0, green: 0.47, blue: 1.0)
var body: some View {
HStack {
Spacer(minLength: 44)
VStack(alignment: .leading, spacing: 6) {
HStack(spacing: 8) {
Capsule().fill(.white.opacity(0.7)).frame(width: 3, height: 30)
VStack(alignment: .leading, spacing: 1) {
Text("Mia Chen").font(.system(size: 12, weight: .semibold)).foregroundStyle(.white.opacity(0.9))
Text("Can you send the file?").font(.system(size: 13)).foregroundStyle(.white.opacity(0.75)).lineLimit(1)
}
}
Text("Just sent it over").font(.system(size: 16)).foregroundStyle(.white)
}
.padding(.horizontal, 14).padding(.vertical, 10)
.background(blue, in: RoundedRectangle(cornerRadius: 20, style: .continuous))
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


