How to create a struct parameter that is a closure with input, returning `some View` instead of `AnyView` in SwiftUI?

前端 未结 0 1886
小鲜肉
小鲜肉 2021-01-20 20:50

Current situation:

I\'m trying to create a reusable view in SwiftUI that returns another view passed into it. At the moment I\'m using a closure that

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