lib/templates/default/swift/Protocols/VIPERProtocols.swift
//
// VIPERProtocols.swift
// VIPERGenDemo
//
// Created by Pedro Piñera Buendía on 22/08/14.
// Copyright (c) 2014 ___Redbooth___. All rights reserved.
//
//Problem with a bucle in protocols: http://stackoverflow.com/questions/26205809/cyclic-loop-between-protocols-in-swift
protocol VIPERPresenterProtocol
{
var view: VIPERViewProtocol? { get set }
var interactor: VIPERInteractorInputProtocol? { get set }
//var wireFrame: VIPERWireFrame? { get set }
// /* Add your extra communication methods here */
// /* Presenter -> ViewController */
}
protocol VIPERViewProtocol
{
//var presenter: VIPERPresenterProtocol? { get set }
}
protocol VIPERDataManagerInputProtocol
{
var interactor: VIPERDataManagerOutputProtocol? { get set }
}
protocol VIPERDataManagerOutputProtocol
{
//var dataManager: VIPERDataManagerInputProtocol? { get set }
}
protocol VIPERInteractorOutputProtocol
{
/* Add your extra communication methods here */
/* Interactor -> Presenter */
}
protocol VIPERInteractorInputProtocol
{
var presenter: VIPERInteractorOutputProtocol? { get set }
/* Add your extra communication methods here */
/* Presenter -> Interactor */
}