Xcode – How to initialize a view with a stateobject as a parameter?
struct ProfileEditView: View { @ObservedObject var viewModel: UsersViewModel @StateObject var auth: Authenticator @State var showingImageEditor: Bool = false init(_ viewModel: UsersViewModel, _ auth: Authenticator) { self.viewModel = viewModel self.auth = auth UITableView.appearance().backgroundColor = UIColor.clear UITableViewCell.appearance().selectionStyle = .none } var body:…