Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
When I am making applications in Xcode, I sometimes find that I write duplicate code.
Is there a way in Xcode to find duplicate code in all files? I would like to know this because I would put the code into a function instead.
Not in Xcode itself, but there are third party solutions. They both can analyse Swift code.