Last active
April 11, 2018 07:11
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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