Find out how many lines of code there are in an Xcode project?

Ref: https://stackoverflow.com/questions/2003534/how-to-find-out-how-many-lines-of-code-there-are-in-an-xcode-project

If Xcode project only has *.swift code

find . \( -iname \*.swift \) -exec wc -l '{}' \+