Verified Commit a66d5c40 authored by asahiocean's avatar asahiocean 🚀
Browse files

commit

parent f9ad9a81
......@@ -7,7 +7,8 @@ extension ViewController {
buttonKVO = mapView.model.observe(\.mainButton, options: [.initial,.new], changeHandler: { obj, change in
guard let config = change.newValue, let button = config else { return }
self.mainButton = button // Monitoring the state of the button through the KVO
// Monitoring the state of the button through the KVO
self.mainButton = button
})
view.addSubview(mainButton)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment