Rectangle 27 0

swift2 changing code from Swift 1 to 2, Error: Type 'NSDirectoryEnumeration Options' does not conform to Protocol 'NilLiteralConvertible'?


let enumerator = manager.enumeratorAtURL(url, includingPropertiesForKeys: keys, options: .SkipsHiddenFiles, errorHandler: nil)
let options: NSDirectoryEnumerationOptions = [.SkipsHiddenFiles, .SkipsPackageDescendants]
let enumerator = manager.enumeratorAtURL(url, includingPropertiesForKeys: keys, options: options, errorHandler: nil)
Note