How to unit test an @ViewBuilder function?

后端 未结 0 1013
滥情空心
滥情空心 2021-01-13 01:48

An example function:

@ViewBuilder func returnView() -> some View {
        if thisIsTrue == true {
            SomeView()
        } else {
            Anot         


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