如何在可以选择的 swiftUI 中显示文本?例如在 macOS 上的终端应用程序中?
Text("This is some text")
显示文本但不可选。
我是 Mac 上 GUI 开发的新手。我应该使用其他视图吗?
小智 -2
尝试使用 Button 来换行或直接使用 Button。
Button("This is some text") {
print("do something here")
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
918 次 |
最近记录: |