Skip to content
Received Bubble preview
Rendered from the SwiftUI source on this page.

Received Bubble

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

An incoming message bubble - grey, left-aligned, rounded.

Chat · SwiftUI · iOS 17

  • chat
  • swiftui

The actual source

ChatReceivedBubble.swift
// Received Bubble · syxUI · https://syxui.dev/components/chat-received
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

// Received message - grey bubble, left aligned
struct ChatReceivedBubble: View {
    var body: some View {
        HStack {
            Text("Hey! Are we still on for coffee tomorrow morning?")
                .font(.system(size: 16)).foregroundStyle(.primary)
                .padding(.horizontal, 14).padding(.vertical, 10)
                .background(Color(.systemGray5), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
            Spacer(minLength: 44)
        }
    }
}
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17