Add app name, version, and build number to SettingsHeaderView

This commit is contained in:
Angelo Stavrow 2020-09-16 12:46:28 -04:00
parent 2e4079b29b
commit 1a569f881d
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -4,16 +4,22 @@ struct SettingsHeaderView: View {
@Environment(\.presentationMode) var presentationMode
var body: some View {
HStack {
Text("Settings")
.font(.largeTitle)
.fontWeight(.bold)
Spacer()
Button(action: {
presentationMode.wrappedValue.dismiss()
}, label: {
Image(systemName: "xmark.circle")
})
VStack {
HStack {
Text("Settings")
.font(.largeTitle)
.fontWeight(.bold)
Spacer()
Button(action: {
presentationMode.wrappedValue.dismiss()
}, label: {
Image(systemName: "xmark.circle")
})
}
Text("WriteFreely v\(Bundle.main.appMarketingVersion) (build \(Bundle.main.appBuildVersion))")
.font(.caption)
.foregroundColor(.secondary)
.padding(.top)
}
.padding()
}