Skip to content

Commit d7dc67c

Browse files
authored
Merge pull request #503 from clementpadovani/clementpadovani/info_pane/allow_selection
Allow selecting text for version info
2 parents 91f7584 + 53ec915 commit d7dc67c

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Xcodes/Frontend/InfoPane/CompilersView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ struct CompilersView: View {
1616
if let compilers = compilers {
1717
VStack(alignment: .leading) {
1818
Text("Compilers").font(.headline)
19-
Text(Self.content(from: compilers)).font(.subheadline)
19+
Text(Self.content(from: compilers))
20+
.font(.subheadline)
21+
.textSelection(.enabled)
2022
}
2123
} else {
2224
EmptyView()

Xcodes/Frontend/InfoPane/InfoPane.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct InfoPane: View {
1919
Text(verbatim: "Xcode \(xcode.description) \(xcode.version.buildMetadataIdentifiersDisplay)")
2020
.font(.title)
2121
.frame(maxWidth: .infinity, alignment: .leading)
22+
.textSelection(.enabled)
2223
}
2324
InfoPaneControls(xcode: xcode)
2425
}

Xcodes/Frontend/InfoPane/SDKsView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ struct SDKsView: View {
1818
} else {
1919
VStack(alignment: .leading) {
2020
Text("SDKs").font(.headline)
21-
Text(content).font(.subheadline)
21+
Text(content)
22+
.font(.subheadline)
23+
.textSelection(.enabled)
2224
}
2325
}
2426
}

0 commit comments

Comments
 (0)