See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| import Foundation | |
| /** | |
| Extension to save/load a JSON object by filename. (".json" extension is assumed and automatically added.) | |
| */ | |
| extension JSONSerialization { | |
| static func loadJSON(withFilename filename: String) throws -> Any? { | |
| let fm = FileManager.default |
| extension UIView { | |
| func roundCorners(_ corners: CACornerMask, radius: CGFloat) { | |
| if #available(iOS 11, *) { | |
| self.layer.cornerRadius = radius | |
| self.layer.maskedCorners = corners | |
| } else { | |
| var cornerMask = UIRectCorner() | |
| if(corners.contains(.layerMinXMinYCorner)){ | |
| cornerMask.insert(.topLeft) |
| extension UIImage { | |
| func fixedOrientation() -> UIImage { | |
| if imageOrientation == UIImageOrientation.Up { | |
| return self | |
| } | |
| var transform: CGAffineTransform = CGAffineTransformIdentity | |