another.im-ios/AnotherIM/View/SharedComponents/SharedSectionTitle.swift

22 lines
547 B
Swift
Raw Permalink Normal View History

2024-10-07 12:54:07 +00:00
import SwiftUI
struct SharedSectionTitle: View {
let text: String
var body: some View {
HStack(spacing: 0) {
// Text
Text(text)
.foregroundColor(Color.Material.Text.sub)
.font(.body3)
.padding(.leading, 16)
.padding(.top, 16)
Spacer()
}
.listRowInsets(.zero)
.listRowSeparator(.hidden)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color.Material.Background.light)
}
}