Prefix server description with category

This commit is contained in:
Davide De Rosa 2022-10-13 22:43:10 +02:00
parent e0efd54cfd
commit 592b0801e2
1 changed files with 5 additions and 1 deletions

View File

@ -98,7 +98,11 @@ extension ProviderServer {
localizedShortDescription.map { localizedShortDescription.map {
comps.append($0) comps.append($0)
} }
return comps.joined(separator: ", ") let desc = comps.joined(separator: ", ")
guard !categoryName.isEmpty else {
return desc
}
return "\(categoryName.uppercased()): \(desc)"
} }
} }