Push View programmatically in callback, SwiftUI

后端 未结 5 1643
长发绾君心
长发绾君心 2020-12-17 09:25

It seems to me that Apple is encouraging us to give up using UIViewController in SwiftUI, but without using view controlelrs, I feel a little bit powerless. Wha

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 10:08

    As of beta 5, NavigationLink is the mechanism used to programmatically push views. You can see an example of it here.

提交回复
热议问题