
Green Bubble
From syxUI — written for both platforms, not translated between them.
A WhatsApp-style green bubble with an inline timestamp and read check.
Chat · SwiftUI · iOS 17
- chat
- swiftui
The actual source
ChatGreenBubble.swift
// Green Bubble · syxUI · https://syxui.dev/components/chat-green
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// WhatsApp-style green bubble with double-check
struct ChatGreenBubble: View {
let green = Color(red: 0.85, green: 0.96, blue: 0.76)
var body: some View {
HStack {
Spacer(minLength: 44)
HStack(alignment: .bottom, spacing: 6) {
Text("On my way, be there in 5!").font(.system(size: 16)).foregroundStyle(.primary)
HStack(spacing: 3) {
Text("9:41").font(.system(size: 11)).foregroundStyle(.secondary)
Image(systemName: "checkmark.circle.fill").font(.system(size: 11)).foregroundStyle(Color(red: 0.0, green: 0.47, blue: 1.0))
}
}
.padding(.horizontal, 12).padding(.vertical, 8)
.background(green, in: RoundedRectangle(cornerRadius: 18, style: .continuous))
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


