22 lines
547 B
Swift
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)
|
|
}
|
|
}
|