Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 1efff2a

Browse files
authored
Add repository name to AppsDetailView
1 parent d450194 commit 1efff2a

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

Sources/prostore/views/AppsDetailView.swift

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,27 @@ public struct AppDetailView: View {
7272
Text(app.name)
7373
.font(.title2)
7474
.bold()
75-
if let dev = app.developerName {
76-
Text(dev)
75+
76+
// Developer name (if available) with repo name underneath.
77+
if let dev = app.developerName, !dev.isEmpty {
78+
VStack(alignment: .leading, spacing: 2) {
79+
Text(dev)
80+
.font(.subheadline)
81+
.foregroundColor(.secondary)
82+
83+
if let repo = app.repositoryName, !repo.isEmpty {
84+
Text(repo)
85+
.font(.caption)
86+
.foregroundColor(.secondary)
87+
}
88+
}
89+
} else if let repo = app.repositoryName, !repo.isEmpty {
90+
// If developer is missing, still show the repository name under the title
91+
Text(repo)
7792
.font(.subheadline)
7893
.foregroundColor(.secondary)
7994
}
95+
8096
Text(app.bundleIdentifier)
8197
.font(.caption)
8298
.foregroundColor(.secondary)
@@ -175,4 +191,4 @@ public struct AppDetailView: View {
175191
.padding()
176192
}
177193
}
178-
}
194+
}

0 commit comments

Comments
 (0)