I'm trying to add some event handlers to the AppDelegate in the form of Optional closures like this:
var applicationEventHandler: ((ApplicationEvent) -> ())?In my didFinishLaunchingWithOptions-function I set this property to the following function
applicationEventHandler = handleApplicationEventfunc handleApplicationEvent(event: ApplicationEvent){
switch event {
//...
}
}However, when I try to call this function via the property, nothing happens. Looking at the debugger, the property does not receive the expected type after assigning it, but instead it says "0x00082120 FöliGuide`partial apply forwarder for reabstraction thunk helper from @callee_owned (@unowned Fo_liGuide.ApplicationEvent) -> (@unowned ()) to @callee_owned (@in Fo_liGuide.ApplicationEvent) -> (@out ()) at AppDelegate.swift"
I'm completely lost as to what is going on. Can anyone help me out?
(Happens on both the latest Xcode stable and Beta release)
Here's a screenshot of the property description: