LiteRoute icon indicating copy to clipboard operation
LiteRoute copied to clipboard

.then closures not called

Open olSolo opened this issue 5 years ago • 0 comments

Example:

MyModuleInput

protocol MyModuleInput: class {
    func configureModule(item: ARItemInfo)
}

Presetning module router:

            try self.transitionHandler!.forSegue(identifier: segueIdentifier, to: MyModuleInput.self).then({ (moduleInput) in
                moduleInput.configureModule(item: item)
            })

If MyModuleInput protocol is NOT defined as class, the .then block will not be invoked. I think there must be some kind of warning or a check for this case

olSolo avatar Mar 01 '19 09:03 olSolo