This file contains hidden or 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 | |
| class BaseImageView: UIView{ | |
| var roundedShape = CAShapeLayer() | |
| var curvedPath: UIBezierPath! | |
| var shapeColor: UIColor! | |
| var circular: Bool! | |
| var shadow: Bool! |
This file contains hidden or 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
| // | |
| // UIViewController+ShorthandAlerts.swift | |
| // | |
| // Created by Ayden Panhuyzen on 2017-07-31. | |
| // Copyright © 2017-2018 Ayden Panhuyzen. All rights reserved. | |
| // https://gist.github.com/aydenp | |
| // | |
| import UIKit |
This file contains hidden or 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 Foundation | |
| extension Date { | |
| func toString(format: String = "yyyy-MM-dd") -> String { | |
| let formatter = DateFormatter() | |
| formatter.dateStyle = .short | |
| formatter.dateFormat = format | |
| return formatter.string(from: self) | |
| } |