Commit 6a46c6c4 authored by Roy Marmelstein's avatar Roy Marmelstein

Improved documentation

parent c0d37950
......@@ -11,21 +11,24 @@ import minizip
/// Zip error type
public enum ZipError: ErrorType {
case FileNotFound // File not found
case UnzipFail // Unzip error
case ZipFail // Zip error
/// Description variable
/// File not found
case FileNotFound
/// Unzip fail
case UnzipFail
/// Zip fail
case ZipFail
/// User readable description
public var description: String {
switch self {
case .FileNotFound: return NSLocalizedString("File not found.", comment: "")
case .UnzipFail: return NSLocalizedString("Failed to unzip zip file.", comment: "")
case .UnzipFail: return NSLocalizedString("Failed to unzip file.", comment: "")
case .ZipFail: return NSLocalizedString("Failed to zip file.", comment: "")
}
}
}
/// Zip class
public class Zip {
// File manager
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment