These packages are available as a package collection, usable in Xcode or SwiftPM.
CodePecker is a tool to detect unused Swift code.
1 package.