From 5b6e6dd3f3aaafd249fe9ba2193dcecec357dd3f Mon Sep 17 00:00:00 2001 From: Alex Lavallee <73203142+lavalleeale@users.noreply.github.com> Date: Mon, 18 Jan 2021 00:55:57 -0800 Subject: [PATCH] Changed key name to user name --- Secretive/Views/SecretDetailView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Secretive/Views/SecretDetailView.swift b/Secretive/Views/SecretDetailView.swift index ed20ae1..32411a4 100644 --- a/Secretive/Views/SecretDetailView.swift +++ b/Secretive/Views/SecretDetailView.swift @@ -24,10 +24,10 @@ struct SecretDetailView: View { .frame(minHeight: 200, maxHeight: .infinity) } - var dashedKeyName: String { - secret.name.replacingOccurrences(of: " ", with: "-") + var dashedUserName: String { + NSUserName().replacingOccurrences(of: " ", with: "-") } - + var dashedHostName: String { ["secretive", Host.current().localizedName, "local"] .compactMap { $0 }