another.im-ios/Monal/another.im/Views/SharedComponents/SharedSectionTitle.swift
2024-11-19 17:07:51 +01:00

22 lines
547 B
Swift

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)
}
}