This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/// Используется для передачи события из View во ViewController | |
protocol UniversityListViewControllerDelegate: AnyObject { | |
func didSelectUniversity(_ viewModel: UniversityListViewModel) | |
func pullToRefreshAction() | |
} | |
/// Протокол, через который Presenter общается с ViewController | |
protocol UniversityListDispayLogic: AnyObject { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import FirebaseStorage | |
import FirebaseFirestore | |
import FirebaseFirestoreSwift | |
protocol FBPostProviderProtocol: BaseProviderProtocol { | |
func getCollection(completion: @escaping (_ collection: [Post], _ error: Error?) -> Void) | |
func create(post: Post, completion: @escaping (_ error: Error?) -> Void) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
final class CharacterViewController: UIViewController { | |
private let output: CharacterViewOutput | |
private let searchController = UISearchController() | |
private let collectionView: UICollectionView | |
private var viewModels = [CharacterViewModel]() | |
private lazy var activityIndicator: UIActivityIndicatorView = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// FBUserService.swift | |
// Photogram | |
// | |
// Created by Roman Gorshkov on 31.05.2021. | |
// | |
import Foundation | |
import Firebase | |
import RxSwift |