blob: 2456dc2b8ab041d4b2e9f3abaf089097d8bdfe0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
//
// DashboardSectionTitleView.swift
// Jel
//
// Created by zerocool on 12/27/23.
//
import SwiftUI
struct DashboardSectionTitleView: View {
@State var titleText: String
init(_ title: String) {
self.titleText = title
}
var body: some View {
HStack {
Text(titleText)
.font(.title2)
.bold()
Spacer()
}
.padding(.top)
}
}
#Preview {
DashboardSectionTitleView("Title")
}
|