See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| // | |
| // KitProviderLayout.swift | |
| // | |
| // Created by Woody on 2022/2/11. | |
| // | |
| import UIKit | |
| #if canImport(SwiftUI) && DEBUG | |
| class ViewLayout { |
| 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) | |
| } |