Skip to content

Instantly share code, notes, and snippets.

View ngoclt's full-sized avatar
:octocat:
High motivation

Nick Le ngoclt

:octocat:
High motivation
  • Helsinki
View GitHub Profile
@ngoclt
ngoclt / Genrics+CellReuse.swift
Created April 29, 2019 12:31 — forked from dubemike/Genrics+CellReuse.swift
An easier way to dequeue cells in iOS
import Foundation
import UIKit
public protocol ReusableView: class {
static var defaultReuseIdentifier: String { get }
}
extension ReusableView where Self: UIView {
public static var defaultReuseIdentifier: String {
return String(describing: self)
}