Skip to content

Instantly share code, notes, and snippets.

View nitin-agam's full-sized avatar
😎
Execution is the key 🔑

Nitin Aggarwal nitin-agam

😎
Execution is the key 🔑
View GitHub Profile
import UIKit
infix operator |: AdditionPrecedence
public extension UIColor {
struct App {
static let hyperLink = UIColor.colorWithHex(hex: "#FFFFFF")
static let background = UIColor.white | UIColor.black
}
import UIKit
let imageCache = NSCache<AnyObject, AnyObject>()
extension UIImageView {
func loadImage(urlString: String) -> Void {
if urlString.isEmpty { return }
extension UILabel {
static func spaceLabel() -> UILabel {
let spacingLabel = UILabel()
spacingLabel.frame = CGRect(x: 0, y: 0, width: 150, height: 50)
spacingLabel.textColor = .white
spacingLabel.textAlignment = .center
spacingLabel.font = UIFont.boldSystemFont(ofSize: 18)
spacingLabel.text = "LIKE ME"
spacingLabel.backgroundColor = .red