Skip to content
Read Receipt preview
Rendered from the SwiftUI source on this page.

Read Receipt

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

A sent bubble with a 'Read' timestamp and the reader's avatar.

Chat · SwiftUI · iOS 17

  • chat
  • swiftui

The actual source

ChatReadReceipt.swift
// Read Receipt · syxUI · https://syxui.dev/components/chat-read-receipt
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

// Read receipt row
struct ChatReadReceipt: View {
    let blue = Color(red: 0.0, green: 0.47, blue: 1.0)
    var body: some View {
        VStack(alignment: .trailing, spacing: 4) {
            HStack {
                Spacer(minLength: 44)
                Text("See you then!").font(.system(size: 16)).foregroundStyle(.white)
                    .padding(.horizontal, 14).padding(.vertical, 10)
                    .background(blue, in: RoundedRectangle(cornerRadius: 20, style: .continuous))
            }
            HStack(spacing: 4) {
                Text("Read 10:24").font(.system(size: 11)).foregroundStyle(.secondary)
                Image("person_1").resizable().scaledToFill().frame(width: 14, height: 14).clipShape(Circle())
            }
        }
    }
}
iOS 17 · 1 dependencies

Dependencies

SwiftUI
  • person_1 (image asset)

Requires iOS 17