class MyViewModel {} class MyView { var viewModel = MyViewModel() func something() { var myclosure: () -> () = { [viewModel = self.viewModel] in // 何かしら } } }