How to initialize a view with a stateobject as a parameter?

后端 未结 0 599
面向向阳花
面向向阳花 2020-11-21 07:06
struct ProfileEditView: View {
@ObservedObject var viewModel: UsersViewModel
@StateObject var auth: Authenticator

@State var showingImageEditor: Bool = false

init(         


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