Int

extension Int

Extension to display humanized filesizes

  • Returns the integer as file size humanized (for instance: 1024 -> “1 KB” )

    Declaration

    Swift

    func asFileSize() -> String