Skip to content

Instantly share code, notes, and snippets.

@verec
verec / 1tbs.4es
Created December 31, 2015 18:09
What Erica meant to write when showing off 1TBS
public extension Contextualizable {
public func BuildContextError( items: Any...,
file: String = (__FILE__ as NSString).lastPathComponent,
function: String = __FUNCTION__,
line: Int = __LINE__) -> CoreError {
let reasons = items.map({"\($0)"}).joinWithSeparator(", ")
let context = "\(function):\(self.dynamicType):\(file):\(line) "
import CoreGraphics
import Foundation
import UIKit
class GradientLabel : UILabel {
let gradient: CGGradient!
let alignedToSuperview: Bool!