Might be handy when estimating work.
- Open Terminal
- cd to your Xcode project
- Execute the following when inside your target project:
find . -name "*.swift" -print0 | xargs -0 wc -l
Credit: https://gist.github.com/Tokuriku/f7d6ce5a68d2154c28b0
total=0; for file in $(find . -name “*.swift”); do export file; export count=“$(egrep -v ‘^$|^\s*$|\/\/.*’ ${file} | wc -l)“; echo ${file} ${count}; total=$((count + total)); done; echo $total
Credit: @vellori