SwiftUI: No ObservableObject of type Y found, where Y is a subclass of an ObservableObject

前端 未结 0 374
臣服心动
臣服心动 2020-11-29 13:01

SwiftUI errors like this appear frequently on StackOverflow:

Thread 1: Fatal error: No ObservableObject of type Foo found. A View.environmentObject(_:) for Fo         


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