Skip to content

Instantly share code, notes, and snippets.

@artemnovichkov
Last active April 11, 2018 07:11
Show Gist options
  • Save artemnovichkov/3f7ed80c7ad987f386e6fc7384857667 to your computer and use it in GitHub Desktop.
Save artemnovichkov/3f7ed80c7ad987f386e6fc7384857667 to your computer and use it in GitHub Desktop.
Code example for the article "Swift, Plist and Two Smoking Scripts" https://medium.com/rosberryapps/swift-plist-and-two-smoking-scripts-94bb54cbeded
guard let enumerator = FileManager.default.enumerator(at: projectURL, includingPropertiesForKeys: nil) else {
exit(1)
}
var swiftFileURLs = enumerator.allObjects
.compactMap { $0 as? URL }
.filter { $0.pathExtension == "swift" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment