clean-swift.com
Using Swift optionals to simplify asynchronous work - Clean Swift
There is a subtle change in the latest template update. The variables viewController, interactor, and presenter are now declared as real optionals using ?. (They were forced unwrapped optionals with ! before.) class CreateOrderViewController: CreateOrderDisplayLogic { var interactor: CreateOrderBusinessLogic? } class CreateOrderInteractor: CreateOrderBusinessLogic { var presenter: CreateOrderPresentationLogic? } class CreateOrderPresenter: CreateOrderPresentationLogic { var viewController: CreateOrderDisplayLogic?...
Raymond