如何在swiftUI中显示可以选择的文本?例如,macOS上的终端应用程序?
Text("This is some text")
显示文本,但它是不可选的。
我是在Mac上进行GUI开发的新手。我应该使用其他视图吗?
发布于 2019-12-18 01:55:14
尝试使用Button对文本进行换行或直接使用Button。
Button("This is some text") {
print("do something here")
}
https://stackoverflow.com/questions/57665497
复制