Skip to content

Instantly share code, notes, and snippets.

View atanasovdejan's full-sized avatar

Dejan Atanasov atanasovdejan

View GitHub Profile
@atanasovdejan
atanasovdejan / firebase-podfile
Created August 3, 2018 21:46
Podfile for installing Firebase
platform :ios, '10.0'
target 'TARGET_NAME' do
use_frameworks!
inhibit_all_warnings!
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'Firebase/Storage'
import UIKit
protocol TestDisplayLogic: class
{
func successFetchedItems(viewModel: Test.Fetch.ViewModel)
func errorFetchingItems(viewModel: Test.Fetch.ViewModel)
}
class TestViewController: UIViewController, TestDisplayLogic
{
import UIKit
protocol TestPresentationLogic
{
func presentFetchResults(response: Test.Fetch.Response)
}
class TestPresenter: TestPresentationLogic
{
weak var viewController: TestDisplayLogic?
import UIKit
protocol TestBusinessLogic
{
func fetchItems(request: Test.Fetch.Request)
}
protocol TestDataStore
{
//var name: String { get set }
import UIKit
@objc protocol TestRoutingLogic
{
//func routeToSomewhere(segue: UIStoryboardSegue?)
}
protocol TestDataPassing
{
var dataStore: TestDataStore? { get }
@atanasovdejan
atanasovdejan / RateApp.swift
Created July 28, 2018 21:18
trigger rating and review screen using SKStoreReviewController
//
// RateApp.swift
// https://medium.com/@dejanatanasov
//
import Foundation
import StoreKit
class RateApp {