-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContentView.swift
More file actions
37 lines (35 loc) · 1.11 KB
/
ContentView.swift
File metadata and controls
37 lines (35 loc) · 1.11 KB
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
31
32
33
34
35
36
37
//
// ContentView.swift
// Example
//
// Created by Michal Kowalski on 17/10/2023.
//
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationStack {
List {
VStack(alignment: .leading) {
Text("Commit hash").font(.caption)
Text(GitCommitInfo.commitHash)
}
VStack(alignment: .leading) {
Text("Branch name").font(.caption)
Text(GitCommitInfo.branchName)
}
VStack(alignment: .leading) {
Text("Short commit hash").font(.caption)
Text(GitCommitInfo.shortCommitHash)
}
VStack(alignment: .leading) {
Text("Commit message").font(.caption)
Text(GitCommitInfo.commitSubject)
}
VStack(alignment: .leading) {
Text("Timestamp").font(.caption)
Text("\(GitCommitInfo.unixTimestamp)")
}
}.navigationTitle("About")
}
}
}