Sha256: 7ef5c2a649e4c61a83f6d716512f072f9c78df290d0856c3a958a8462cae6761

Contents?: true

Size: 769 Bytes

Versions: 3

Compression:

Stored size: 769 Bytes

Contents

//
//  <%= @prefixed_module %>Presenter.swift
//  <%= @project %>
//
//  Created by <%= @author %> on <%= @date %>.
//
//

import Foundation

protocol <%= @prefixed_module %>PresenterProtocol: AnyObject {
    func notifySignInTapped()
    func notifySignUpTapped()
}

class <%= @prefixed_module %>Presenter: <%= @prefixed_module %>PresenterProtocol {
    weak var view: <%= @prefixed_module %>ViewProtocol?
    var router: <%= @prefixed_module %>RouterProtocol?
    var interactor: <%= @prefixed_module %>InteractorProtocol?
    
    func notifySignInTapped() {
        router?.routeToSignIn(view as! <%= @prefixed_module %>ViewController)
    }
    
    func notifySignUpTapped() {
        router?.routeToSignUp(view as! <%= @prefixed_module %>ViewController)
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mt_tool-1.0.0 lib/mt_tool/module/template/swift/Presenter.swift
mt_tool-0.1.5 lib/mt_tool/module/template/swift/Presenter.swift
mt_tool-0.1.4 lib/mt_tool/module/template/swift/Presenter.swift