Swift Solution
\nclass Solution {\n    func numUniqueEmails(_ emails: [String]) -> Int {\n        var processedLocalNames = Set<String>()\n        emails.forEach {\n          
```\nclass Solution {\n    func numUniqueEmails(_ emails: [String]) -> Int {\n        var processedLocalNames = Set<String>()\n        emails.forEach {\n            let components = $0.components(separatedBy: "@")\n            processedLocalNames.insert("\\(components[0].processedLocalName)@\\(components[1])")\n        }\n        return processedLocalNames.count\n    }\n}\n\nextension String {\n    var processedLocalName: String {\n        let prePlus = components(separatedBy: "+")[0]\n        return prePlus.components(separatedBy: ".").joined()\n    }\n}\n```
[]