In global software engineering, practitioners use
code metrics analyzers to measure code quality to detect code
smells or any technical debt early at the development phase.
Different tools exist to evaluate these metrics to ensure the
maintainability and reliability of any codebase. This paper
presents a tool SCMA (Swift Code Metrics Analyzer) which
analyzes swift code considering ten code metrics for analyzing
software architecture to ensure code quality. We have used the
native swift parser to implement this tool. This tool suggests
refactoring the codebase by giving a final score averaging the
score of all ten metrics. We have validated the accuracy of each
metric measured by this tool by analyzing the codebase manually.
This tool can help the developers to inspect the swift modules of
iOS projects and give an insight into the improvement area of
each project.