another.im-ios/Monal/another.im/Views/SharedComponents/SharedSectionTitle.swift

22 lines
547 B
Swift
Raw Permalink Normal View History

2024-11-19 16:07:47 +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)
}
}