From 990a0f033a04da697465aff99f9c3d946c2199cc Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Thu, 25 Apr 2019 21:25:11 +0200 Subject: [PATCH] Append tags to Pool.secondaryId --- Passepartout/Sources/Services/Pool.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Passepartout/Sources/Services/Pool.swift b/Passepartout/Sources/Services/Pool.swift index a2806040..61e51601 100644 --- a/Passepartout/Sources/Services/Pool.swift +++ b/Passepartout/Sources/Services/Pool.swift @@ -113,6 +113,11 @@ extension Pool { if let num = num { comps.append("#\(num)") } - return comps.joined(separator: " ") + var str = comps.joined(separator: " ") + if let tags = tags { + let suffix = tags.map { $0.uppercased() }.joined(separator: ",") + str = "\(str) (\(suffix))" + } + return str } }