{"action":"created","issue":{"url":"https://api.github.com/repos/EurekaCommunity/ImageRow/issues/3","repository_url":"https://api.github.com/repos/EurekaCommunity/ImageRow","labels_url":"https://api.github.com/repos/EurekaCommunity/ImageRow/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/EurekaCommunity/ImageRow/issues/3/comments","events_url":"https://api.github.com/repos/EurekaCommunity/ImageRow/issues/3/events","html_url":"https://github.com/EurekaCommunity/ImageRow/issues/3","id":186296680,"number":3,"title":"Custom Cell Class","user":{"login":"dev4dev","id":722407,"avatar_url":"https://avatars.githubusercontent.com/u/722407?v=3","gravatar_id":"","url":"https://api.github.com/users/dev4dev","html_url":"https://github.com/dev4dev","followers_url":"https://api.github.com/users/dev4dev/followers","following_url":"https://api.github.com/users/dev4dev/following{/other_user}","gists_url":"https://api.github.com/users/dev4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/dev4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev4dev/subscriptions","organizations_url":"https://api.github.com/users/dev4dev/orgs","repos_url":"https://api.github.com/users/dev4dev/repos","events_url":"https://api.github.com/users/dev4dev/events{/privacy}","received_events_url":"https://api.github.com/users/dev4dev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T14:26:08Z","updated_at":"2016-10-31T15:16:28Z","closed_at":"2016-10-31T15:16:28Z","body":"Hello guys,\r\n\r\nThanks for such a great component. But it's a little bit too complex to grasp it quickly. Can you help with custom cell class, where I can have imageView added to contentView, and not sticked to accessoryView position.\r\n\r\nI ended up with something like this\r\n\r\n```swift\r\nprotocol ImagePickerCellType: class {\r\n\tvar imagePickerView: UIImageView! { get set }\r\n}\r\n\r\npublic class ImagePickerCell: Cell<UIImage>, CellType, ImagePickerCellType {\r\n\r\n\tinternal(set) var imagePickerView: UIImageView!\r\n\r\n\tpublic override func setup() {\r\n\t\tsuper.setup()\r\n\t\timagePickerView = UIImageView(frame: .init(x: 200, y: 0, width: 44.0, height: 44.0))\r\n\t\timagePickerView.contentMode = .scaleAspectFill\r\n\t\timagePickerView.clipsToBounds = true\r\n\t\tcontentView.addSubview(imagePickerView)\r\n\t}\r\n\r\n\tpublic override func update() {\r\n\t\tsuper.update()\r\n\t\taccessoryType = .disclosureIndicator\r\n\t\teditingAccessoryType = accessoryType\r\n\t\tselectionStyle = row.isDisabled ? .none : .default\r\n\t}\r\n}\r\n```\r\n\r\nTherefore I don't know how to setup Cell constraint in Row definition. I tried to add **Cell: ImagePickerCellType** to `open class _ImageRow<Cell: CellType>: SelectorRow<Cell, ImagePickerController> where Cell: BaseCell,  Cell.Value == UIImage {`, but I got `Generic class cannot be declared  because its generic requirement uses an internal type`.\r\n\r\nAs temporary solution I updated row as follow\r\n\r\n```swift\r\nopen override func customUpdateCell() {\r\n        super.customUpdateCell()\r\n        cell.accessoryType = .none\r\n\r\n\t\tguard let cell = cell as? ImagePickerCellType else { return }\r\n\r\n        if let image = self.value {\r\n            cell.imagePickerView.image = image\r\n        } else {\r\n            cell.imagePickerView.image = nil\r\n        }\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/EurekaCommunity/ImageRow/issues/comments/257321835","html_url":"https://github.com/EurekaCommunity/ImageRow/issues/3#issuecomment-257321835","issue_url":"https://api.github.com/repos/EurekaCommunity/ImageRow/issues/3","id":257321835,"user":{"login":"dev4dev","id":722407,"avatar_url":"https://avatars.githubusercontent.com/u/722407?v=3","gravatar_id":"","url":"https://api.github.com/users/dev4dev","html_url":"https://github.com/dev4dev","followers_url":"https://api.github.com/users/dev4dev/followers","following_url":"https://api.github.com/users/dev4dev/following{/other_user}","gists_url":"https://api.github.com/users/dev4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/dev4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev4dev/subscriptions","organizations_url":"https://api.github.com/users/dev4dev/orgs","repos_url":"https://api.github.com/users/dev4dev/repos","events_url":"https://api.github.com/users/dev4dev/events{/privacy}","received_events_url":"https://api.github.com/users/dev4dev/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T15:16:28Z","updated_at":"2016-10-31T15:16:28Z","body":"Omg...that's so simple...\r\n\r\nThank you, now everything is ok! 🎉"}}
{"actor":{"display_login":"dev4dev"}}