Skip to content

Instantly share code, notes, and snippets.

View Rashidium's full-sized avatar

Raşid Ramazanov Rashidium

  • Mobven
  • Istanbul
View GitHub Profile
@Rashidium
Rashidium / CustomerLink.swift
Created March 29, 2021 12:40
CustomerDetailLink
@Rashidium
Rashidium / DeeplinkManager.swift
Last active July 23, 2021 22:16
DeeplinkManager
/// Manager for deeplinks.
public final class DeeplinkManager {
/// Application supported deeplinks.
private var links: [AppLinkable]
/// Initializes manager with supported links.
public init(supportedLinks links: [AppLinkable]) {
self.links = links
}
}
@Rashidium
Rashidium / AppLinkable.swift
Created March 29, 2021 12:34
Empty AppLinkable
/// AppLinkable's for deeplink navigation.
public protocol AppLinkable {}
@Rashidium
Rashidium / NotificationsLink.swift
Created March 29, 2021 12:00
Notification Link
@Rashidium
Rashidium / FeedRouter.swift
Created January 31, 2021 19:26
FeedRouter with data passing
import Foundation
protocol FeedRoutingLogic: class {
func routeToMovieDetail()
}
protocol FeedDataPassing: class {
var dataStore: FeedDataStore? { get }
}
@Rashidium
Rashidium / FeedModels.swift
Last active January 26, 2021 15:19
FeedModels
import Foundation
import API
// swiftlint:disable nesting
enum Feed {
enum FetchMovies {
struct Request {
@Rashidium
Rashidium / FeedRouter.swift
Created January 23, 2021 18:51
FeedRouter
import Foundation
protocol FeedRoutingLogic: class {
}
protocol FeedDataPassing: class {
var dataStore: FeedDataStore? { get }
}
@Rashidium
Rashidium / FeedWorker.swift
Last active January 26, 2021 14:47
FeedWorker
import Foundation
protocol FeedWorkingLogic: AnyObject {
}
final class FeedWorker: FeedWorkingLogic {
}
@Rashidium
Rashidium / FeedPresenter.swift
Last active January 26, 2021 14:48
FeedPresenter
import Foundation
protocol FeedPresentationLogic: AnyObject {
}
final class FeedPresenter: FeedPresentationLogic {
weak var viewController: FeedDisplayLogic?
@Rashidium
Rashidium / FeedInteractor.swift
Last active January 26, 2021 14:47
FeedInteractor
import Foundation
protocol FeedBusinessLogic: AnyObject {
}
protocol FeedDataStore: AnyObject {
}