Skip to content
Skeleton Chat preview
Rendered from the SwiftUI source on this page.

Skeleton Chat

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

A chat-bubbles skeleton.

Loaders · SwiftUI · iOS 17

  • loaders
  • swiftui

The actual source

SkeletonChat.swift
// Skeleton Chat · syxUI · https://syxui.dev/components/loader-sk-chat
// Free in any project. Keep this line and credit syxUI where a person can read it.

import SwiftUI

let ldBlue = Color(red: 0.0, green: 0.47, blue: 1.0)

struct SkeletonChat: View { var body: some View { VStack(alignment: .leading, spacing: 12) { HStack { RoundedRectangle(cornerRadius: 16, style: .continuous).fill(Color.primary.opacity(0.08)).frame(width: 180, height: 40); Spacer() }; HStack { Spacer(); RoundedRectangle(cornerRadius: 16, style: .continuous).fill(ldBlue.opacity(0.12)).frame(width: 140, height: 34) }; HStack { RoundedRectangle(cornerRadius: 16, style: .continuous).fill(Color.primary.opacity(0.08)).frame(width: 150, height: 34); Spacer() } }.frame(width: 300) } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17