> On Jul 22, 2017, at 12:12 AM, William Shipley via swift-evolution
> wrote:
>
> submodelObservation = observe(\.controller.submodel) { object, change
> in
> // code
> }
>
>
> @objc dynamic internal var controller: Controller?
>
> in the
When I try to observe a key path that includes an optional (“controller” in
this case) in Swift, I get a compiler error saying ‘Type of expression is
ambiguous without more context’ on the backslash in this statement:
submodelObservation = observe(\.controller.submodel) { object, change