
Unread Divider
From syxUI — written for both platforms, not translated between them.
A red 'Unread Messages' separator line.
Chat · SwiftUI · iOS 17
- chat
- swiftui
The actual source
ChatUnreadDivider.swift
// Unread Divider · syxUI · https://syxui.dev/components/chat-unread
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Unread messages divider
struct ChatUnreadDivider: View {
let red = Color(red: 0.9, green: 0.24, blue: 0.22)
var body: some View {
HStack(spacing: 10) {
Rectangle().fill(red.opacity(0.3)).frame(height: 1)
Text("UNREAD MESSAGES").font(.system(size: 11, weight: .semibold)).foregroundStyle(red)
Rectangle().fill(red.opacity(0.3)).frame(height: 1)
}
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


