Skip to content

Instantly share code, notes, and snippets.

Eliah Snakin nikans

Block or report user

Report or block nikans

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nikans
nikans / non-nominal-init-success.swift
Created Sep 7, 2017
Initializing Presenter(dispatcher: dispatcher) successfully, still, cannot call attachView(:)
View non-nominal-init-success.swift
import UIKit
protocol ListPDOCommonType {
}
protocol ListDispatcherType {
init()
}
protocol ListViewType: class {
@nikans
nikans / non-nominal-init-fail.swift
Created Sep 7, 2017
Cannot initialize Presenter(dispatcher: dispatcher, view: self)
View non-nominal-init-fail.swift
import UIKit
protocol ListPDOCommonType {
}
protocol ListDispatcherType {
init()
}
protocol ListViewType: class {
@nikans
nikans / Fonts.swift
Created Jul 27, 2017 — forked from feighter09/Fonts.swift
Set global font for iOS app in one place
View Fonts.swift
// Kinda updated for Swift 3.1
// MARK: - Swizzling
extension UIFont {
class var defaultFontFamily: String { return "Georgia" }
override open class func initialize()
{
if self == UIFont.self {
swizzleSystemFont()
You can’t perform that action at this time.