Wallet send & receive screens

This commit is contained in:
Ilya Laktyushin
2019-09-21 01:30:01 +03:00
parent 140a77d7ac
commit 96a68a619b
64 changed files with 5366 additions and 117 deletions

View File

@@ -0,0 +1,17 @@
import Foundation
public extension String {
func rightJustified(width: Int, pad: String = " ", truncate: Bool = false) -> String {
guard width > count else {
return truncate ? String(suffix(width)) : self
}
return String(repeating: pad, count: width - count) + self
}
func leftJustified(width: Int, pad: String = " ", truncate: Bool = false) -> String {
guard width > count else {
return truncate ? String(prefix(width)) : self
}
return self + String(repeating: pad, count: width - count)
}
}