Swift Solution; Clean and Easy Read; Beats 99%
\nclass Solution {\n    func numUniqueEmails(_ emails: [String]) -> Int {\n        guard emails.count > 0 else { return 0 }\n        var resultSet = Set<String>
```\nclass Solution {\n    func numUniqueEmails(_ emails: [String]) -> Int {\n        guard emails.count > 0 else { return 0 }\n        var resultSet = Set<String>()\n        \n        for email in emails {\n            let seperated = email.split(separator: "@")\n            let local = seperated[0], validDomain = seperated[1]\n            var validLocal = String()\n            \n            for char in local where char != "." {\n                guard char != "+" else { break }\n                validLocal.append(char)\n            }\n            \n            let validFormat = validLocal + "@" + validDomain\n            resultSet.insert(String(validFormat))\n        }\n        return resultSet.count\n    }\n}\n```
[]