diff --git a/Xcodes/Backend/Progress+.swift b/Xcodes/Backend/Progress+.swift index b71b994..6e7688c 100644 --- a/Xcodes/Backend/Progress+.swift +++ b/Xcodes/Backend/Progress+.swift @@ -2,6 +2,9 @@ import os.log import Foundation extension Progress { + var xcodesLocalizedDescription: String { + return localizedAdditionalDescription.replacingOccurrences(of: " — ", with: "\n") + } func updateFromAria2(string: String) { let range = NSRange(location: 0, length: string.utf16.count) diff --git a/Xcodes/Frontend/Common/ObservingProgressIndicator.swift b/Xcodes/Frontend/Common/ObservingProgressIndicator.swift index d4dc428..88a11ef 100644 --- a/Xcodes/Frontend/Common/ObservingProgressIndicator.swift +++ b/Xcodes/Frontend/Common/ObservingProgressIndicator.swift @@ -48,8 +48,8 @@ public struct ObservingProgressIndicator: View { ) .help("Downloading: \(Int((progress.progress.fractionCompleted * 100)))% complete") - if showsAdditionalDescription, progress.progress.localizedAdditionalDescription.isEmpty == false { - Text(progress.progress.localizedAdditionalDescription) + if showsAdditionalDescription, progress.progress.xcodesLocalizedDescription.isEmpty == false { + Text(progress.progress.xcodesLocalizedDescription) .font(.subheadline) .foregroundColor(.secondary) }