Launch Preview.app from a SwiftUI app with a file

前端 未结 0 1605
挽巷
挽巷 2021-02-14 20:32

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         


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