See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// | |
// Created by Alexey Bukhtin on 26/03/2021. | |
// | |
import SwiftUI | |
extension View { | |
/// Reads the view frame and bind it to the reader. | |
/// - Parameters: |
// http://stackoverflow.com/a/40089462 | |
extension Data { | |
func hexEncodedString() -> String { | |
return map { String(format: "%02hhx", $0) }.joined() | |
} | |
} |
import Foundation | |
extension String | |
{ | |
var length: Int { | |
get { | |
return countElements(self) | |
} | |
} | |