{"action":"created","issue":{"url":"https://api.github.com/repos/jpotts18/SwiftValidator/issues/21","labels_url":"https://api.github.com/repos/jpotts18/SwiftValidator/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/jpotts18/SwiftValidator/issues/21/comments","events_url":"https://api.github.com/repos/jpotts18/SwiftValidator/issues/21/events","html_url":"https://github.com/jpotts18/SwiftValidator/issues/21","id":70004217,"number":21,"title":"Bound value in a conditional binding must be of Optional type in Xcode 6.3","user":{"login":"datomnurdin","id":5416242,"avatar_url":"https://avatars.githubusercontent.com/u/5416242?v=3","gravatar_id":"","url":"https://api.github.com/users/datomnurdin","html_url":"https://github.com/datomnurdin","followers_url":"https://api.github.com/users/datomnurdin/followers","following_url":"https://api.github.com/users/datomnurdin/following{/other_user}","gists_url":"https://api.github.com/users/datomnurdin/gists{/gist_id}","starred_url":"https://api.github.com/users/datomnurdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datomnurdin/subscriptions","organizations_url":"https://api.github.com/users/datomnurdin/orgs","repos_url":"https://api.github.com/users/datomnurdin/repos","events_url":"https://api.github.com/users/datomnurdin/events{/privacy}","received_events_url":"https://api.github.com/users/datomnurdin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-22T02:40:04Z","updated_at":"2015-04-27T08:25:19Z","closed_at":null,"body":"As per subject, I got this error message on this line of code\r\n\r\n```\r\nimport Foundation\r\n\r\nclass PhoneNumberValidation: Validation {\r\n    let PHONE_REGEX = \"^\\\\d{3}-\\\\d{3}-\\\\d{4}$\"\r\n    \r\n    func validate(value: String) -> (Bool, ValidationErrorType) {\r\n        if let phoneTest = NSPredicate(format: \"SELF MATCHES %@\", PHONE_REGEX) { //error here\r\n            if phoneTest.evaluateWithObject(value) {\r\n                return (true, .NoError)\r\n            }\r\n            return (false, .PhoneNumber)\r\n        }\r\n        return (false, .PhoneNumber)\r\n    }\r\n    \r\n}\r\n```\r\n\r\nPlease advice. Thank you."},"comment":{"url":"https://api.github.com/repos/jpotts18/SwiftValidator/issues/comments/96555437","html_url":"https://github.com/jpotts18/SwiftValidator/issues/21#issuecomment-96555437","issue_url":"https://api.github.com/repos/jpotts18/SwiftValidator/issues/21","id":96555437,"user":{"login":"schan93","id":1704125,"avatar_url":"https://avatars.githubusercontent.com/u/1704125?v=3","gravatar_id":"","url":"https://api.github.com/users/schan93","html_url":"https://github.com/schan93","followers_url":"https://api.github.com/users/schan93/followers","following_url":"https://api.github.com/users/schan93/following{/other_user}","gists_url":"https://api.github.com/users/schan93/gists{/gist_id}","starred_url":"https://api.github.com/users/schan93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schan93/subscriptions","organizations_url":"https://api.github.com/users/schan93/orgs","repos_url":"https://api.github.com/users/schan93/repos","events_url":"https://api.github.com/users/schan93/events{/privacy}","received_events_url":"https://api.github.com/users/schan93/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T08:25:19Z","updated_at":"2015-04-27T08:25:19Z","body":"Can confirm this error. I am also getting this issue.\r\n"}}