From 5aed44f9697015ef25424274e1f3c8e3c6650b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Padovani?= Date: Sat, 17 Feb 2024 18:37:32 +0100 Subject: [PATCH 1/3] Allow selecting text from the info panel --- Xcodes/Frontend/InfoPane/InfoPane.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Xcodes/Frontend/InfoPane/InfoPane.swift b/Xcodes/Frontend/InfoPane/InfoPane.swift index 95826b7..69da1f4 100644 --- a/Xcodes/Frontend/InfoPane/InfoPane.swift +++ b/Xcodes/Frontend/InfoPane/InfoPane.swift @@ -19,6 +19,7 @@ struct InfoPane: View { Text(verbatim: "Xcode \(xcode.description) \(xcode.version.buildMetadataIdentifiersDisplay)") .font(.title) .frame(maxWidth: .infinity, alignment: .leading) + .textSelection(.enabled) } InfoPaneControls(xcode: xcode) } From 8d7412fd184c94daaa9ac1a75140374f7329b915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Padovani?= Date: Sat, 17 Feb 2024 18:39:04 +0100 Subject: [PATCH 2/3] allow selecting text from the SDKs --- Xcodes/Frontend/InfoPane/SDKsView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Xcodes/Frontend/InfoPane/SDKsView.swift b/Xcodes/Frontend/InfoPane/SDKsView.swift index 0d3552e..6fa971a 100644 --- a/Xcodes/Frontend/InfoPane/SDKsView.swift +++ b/Xcodes/Frontend/InfoPane/SDKsView.swift @@ -18,7 +18,9 @@ struct SDKsView: View { } else { VStack(alignment: .leading) { Text("SDKs").font(.headline) - Text(content).font(.subheadline) + Text(content) + .font(.subheadline) + .textSelection(.enabled) } } } From 53ec9156ff8196214d4c4e55b9e00bed577cdbc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Padovani?= Date: Sat, 17 Feb 2024 18:39:10 +0100 Subject: [PATCH 3/3] allow selecting text from the compilers --- Xcodes/Frontend/InfoPane/CompilersView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Xcodes/Frontend/InfoPane/CompilersView.swift b/Xcodes/Frontend/InfoPane/CompilersView.swift index b08458a..962937d 100644 --- a/Xcodes/Frontend/InfoPane/CompilersView.swift +++ b/Xcodes/Frontend/InfoPane/CompilersView.swift @@ -16,7 +16,9 @@ struct CompilersView: View { if let compilers = compilers { VStack(alignment: .leading) { Text("Compilers").font(.headline) - Text(Self.content(from: compilers)).font(.subheadline) + Text(Self.content(from: compilers)) + .font(.subheadline) + .textSelection(.enabled) } } else { EmptyView()