{"action":"opened","issue":{"url":"https://api.github.com/repos/appsquickly/Typhoon/issues/425","labels_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/425/comments","events_url":"https://api.github.com/repos/appsquickly/Typhoon/issues/425/events","html_url":"https://github.com/appsquickly/Typhoon/issues/425","id":106968428,"number":425,"title":"Error when injecting a Swift protocol-property","user":{"login":"fatuhoku","id":430233,"avatar_url":"https://avatars.githubusercontent.com/u/430233?v=3","gravatar_id":"","url":"https://api.github.com/users/fatuhoku","html_url":"https://github.com/fatuhoku","followers_url":"https://api.github.com/users/fatuhoku/followers","following_url":"https://api.github.com/users/fatuhoku/following{/other_user}","gists_url":"https://api.github.com/users/fatuhoku/gists{/gist_id}","starred_url":"https://api.github.com/users/fatuhoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatuhoku/subscriptions","organizations_url":"https://api.github.com/users/fatuhoku/orgs","repos_url":"https://api.github.com/users/fatuhoku/repos","events_url":"https://api.github.com/users/fatuhoku/events{/privacy}","received_events_url":"https://api.github.com/users/fatuhoku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-17T12:03:24Z","updated_at":"2015-09-17T12:03:24Z","closed_at":null,"body":"I'm trying to inject an object conforming to `FooBarEventHandler` protocol into a `UIViewController`\r\n\r\nAssembly:\r\n\r\n```swift\r\nclass Assembly: TyphoonAssembly {\r\n    @objc dynamic func viewController() -> AnyObject {\r\n        return TyphoonDefinition.withFactory(self.storyboard(), selector: \"instantiateViewControllerWithIdentifier:\", parameters: {\r\n            (method: TyphoonMethod!) in\r\n            method.injectParameterWith(\"foobar\")\r\n        }) {\r\n            (definition) in\r\n            definition.injectProperty(\"eventHandler\")\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n```swift\r\n@objc protocol FooBarEventHandler {\r\n    func fooBar()\r\n}\r\n\r\nclass FooBarViewController: UIViewController {\r\n    @objc dynamic var eventHandler: FooBarEventHandler!\r\n\r\n    // ...\r\n}\r\n```\r\n\r\nI get an error when running this:\r\n\r\n```\r\n'Can't recognize type for property 'eventHandler' of class 'MyModule.FooBarViewController'. Make sure that @property exists and has correct type.'\r\n```"}}