Launch Preview.app from a SwiftUI app with a file

前端 未结 0 998
感情败类
感情败类 2021-02-14 20:20

I want to launch the Preview.App on MacOS with a file to show.
I try it like this.

struct ContentView: View {
  var body: some View {
    Button("Launc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题