SwiftUI - call a func in a View from outside

后端 未结 0 878
情歌与酒
情歌与酒 2021-02-05 05:03

is it possible to call a func of a View from outside.
I tried like this, but had no success.

@main
struct CallFromOutsideApp: App {
  var body: some Scene {         


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