How to make a SwiftUI NavigationLink conditional based on an Optional Object?

前端 未结 0 1561
名媛妹妹
名媛妹妹 2020-12-11 08:58

Let’s say I have a model class Ball, that conforms to the ObservableObject protocol, and I define an optional instance of it (var ball: Ball?

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