我在一个SwiftUI和一个HostingViewController视图控制器中有一个UIKit。我的目标是通过按下按钮在他们之间切换。问题是,我无法实现从HostingViewController内部的HostingViewController视图返回到UIKit。我可以使用这个segue函数访问HostingViewController over my UIKit ViewController:
@IBSegueAction func swif
我有一个从主UIKit视图调用的SwiftUI模式视图。我想在我的模式视图中添加一个解除按钮。据我所知,UIKit中没有@State变量,所以我创建了一个单独的SwiftUI视图来存储@State变量,但由于某些原因,它无法工作。我该如何解决这个问题呢?我在主ViewController中的代码: var hack = StateInUIKitHack()
hac