What is a good way to bind a SwiftUI alert or action sheet to the optionality of a value type model property (show the view when the property is nil)?

前端 未结 0 531
我在风中等你
我在风中等你 2021-01-29 06:47

SwiftUI alerts and action sheets take Boolean bindings, but I want mine to display when a model property is nil. The model property is var servicePlayer: Play

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