Merge pull request #503 from clementpadovani/clementpadovani/info_pane/allow_selection

Allow selecting text for version info
This commit is contained in:
Matt Kiazyk 2024-03-08 13:34:25 -06:00 committed by GitHub
commit d7dc67c046
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -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()

View file

@ -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)
}

View file

@ -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)
}
}
}