class SomeViewController: UIViewController { ... override func viewDidLoad() { super.viewDidLoad() ... var someClosure: () -> Void = {} var parameters = SomeStruct() { didSet { someClosure() } } someClosure = { [weak self] in self?.someMethod(parameters: parameters) } ...
someClosure()
で包む、以外にスマートな方法ありますか?