This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
infix operator |: AdditionPrecedence | |
public extension UIColor { | |
struct App { | |
static let hyperLink = UIColor.colorWithHex(hex: "#FFFFFF") | |
static let background = UIColor.white | UIColor.black | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
let imageCache = NSCache<AnyObject, AnyObject>() | |
extension UIImageView { | |
func loadImage(urlString: String) -> Void { | |
if urlString.isEmpty { return } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder