diff options
author | Shav Kinderlehrer <[email protected]> | 2023-12-27 13:37:21 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2023-12-27 18:11:33 -0500 |
commit | a271314f15c30f59d84296a12aab280eda2d3c64 (patch) | |
tree | 6086a272edfaeda72d4728cdd2f3f17fdf738659 /Jel/Views/Dashboard/DashboardSectionTitleView.swift | |
parent | b7a1bd1d558eb954968668b8d69358d4d9faaa23 (diff) | |
download | jel-a271314f15c30f59d84296a12aab280eda2d3c64.tar.gz jel-a271314f15c30f59d84296a12aab280eda2d3c64.zip |
Pad item info text when view is horizontal
Diffstat (limited to 'Jel/Views/Dashboard/DashboardSectionTitleView.swift')
-rw-r--r-- | Jel/Views/Dashboard/DashboardSectionTitleView.swift | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Jel/Views/Dashboard/DashboardSectionTitleView.swift b/Jel/Views/Dashboard/DashboardSectionTitleView.swift new file mode 100644 index 0000000..2456dc2 --- /dev/null +++ b/Jel/Views/Dashboard/DashboardSectionTitleView.swift @@ -0,0 +1,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") +} |