mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added reverse order to the network chart (#1721)
This commit is contained in:
@@ -14,6 +14,10 @@ import Cocoa
|
||||
extension String: LocalizedError {
|
||||
public var errorDescription: String? { return self }
|
||||
|
||||
public var digits: String {
|
||||
return components(separatedBy: CharacterSet.decimalDigits.inverted).joined()
|
||||
}
|
||||
|
||||
public func widthOfString(usingFont font: NSFont) -> CGFloat {
|
||||
let fontAttributes = [NSAttributedString.Key.font: font]
|
||||
let size = self.size(withAttributes: fontAttributes)
|
||||
|
||||
Reference in New Issue
Block a user