Skip to content

Instantly share code, notes, and snippets.

@nikans
nikans / non-nominal-init-success.swift
Created September 7, 2017 02:14
Initializing Presenter(dispatcher: dispatcher) successfully, still, cannot call attachView(:)
import UIKit
protocol ListPDOCommonType {
}
protocol ListDispatcherType {
init()
}
protocol ListViewType: class {
@nikans
nikans / non-nominal-init-fail.swift
Created September 7, 2017 02:11
Cannot initialize Presenter(dispatcher: dispatcher, view: self)
import UIKit
protocol ListPDOCommonType {
}
protocol ListDispatcherType {
init()
}
protocol ListViewType: class {
@nikans
nikans / Fonts.swift
Created July 27, 2017 12:29 — forked from feighter09/Fonts.swift
Set global font for iOS app in one place
// 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()