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

Improved documentation

parent c0d37950
...@@ -11,21 +11,24 @@ import minizip ...@@ -11,21 +11,24 @@ import minizip
/// Zip error type /// Zip error type
public enum ZipError: ErrorType { public enum ZipError: ErrorType {
case FileNotFound // File not found /// File not found
case UnzipFail // Unzip error case FileNotFound
case ZipFail // Zip error /// Unzip fail
case UnzipFail
/// Zip fail
case ZipFail
/// Description variable /// User readable description
public var description: String { public var description: String {
switch self { switch self {
case .FileNotFound: return NSLocalizedString("File not found.", comment: "") 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: "") case .ZipFail: return NSLocalizedString("Failed to zip file.", comment: "")
} }
} }
} }
/// Zip class
public class Zip { public class Zip {
// File manager // 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