{"action":"created","issue":{"url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/218","repository_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell","labels_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/218/comments","events_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/218/events","html_url":"https://github.com/MortimerGoro/MGSwipeTableCell/issues/218","id":169251369,"number":218,"title":"Make portion of cell swipeable","user":{"login":"mattgabor","id":5590876,"avatar_url":"https://avatars.githubusercontent.com/u/5590876?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgabor","html_url":"https://github.com/mattgabor","followers_url":"https://api.github.com/users/mattgabor/followers","following_url":"https://api.github.com/users/mattgabor/following{/other_user}","gists_url":"https://api.github.com/users/mattgabor/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgabor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgabor/subscriptions","organizations_url":"https://api.github.com/users/mattgabor/orgs","repos_url":"https://api.github.com/users/mattgabor/repos","events_url":"https://api.github.com/users/mattgabor/events{/privacy}","received_events_url":"https://api.github.com/users/mattgabor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-03T22:40:14Z","updated_at":"2016-08-24T15:48:09Z","closed_at":null,"body":"Is there a way to make a portion of the cell swipeable, and the rest static?"},"comment":{"url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/comments/242114040","html_url":"https://github.com/MortimerGoro/MGSwipeTableCell/issues/218#issuecomment-242114040","issue_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/218","id":242114040,"user":{"login":"MortimerGoro","id":1070794,"avatar_url":"https://avatars.githubusercontent.com/u/1070794?v=3","gravatar_id":"","url":"https://api.github.com/users/MortimerGoro","html_url":"https://github.com/MortimerGoro","followers_url":"https://api.github.com/users/MortimerGoro/followers","following_url":"https://api.github.com/users/MortimerGoro/following{/other_user}","gists_url":"https://api.github.com/users/MortimerGoro/gists{/gist_id}","starred_url":"https://api.github.com/users/MortimerGoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MortimerGoro/subscriptions","organizations_url":"https://api.github.com/users/MortimerGoro/orgs","repos_url":"https://api.github.com/users/MortimerGoro/repos","events_url":"https://api.github.com/users/MortimerGoro/events{/privacy}","received_events_url":"https://api.github.com/users/MortimerGoro/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T15:48:09Z","updated_at":"2016-08-24T15:48:09Z","body":"You can do something like this:\r\n\r\n1. Add your static view to cell.swipeContentView instead of cell.contentView\r\n2. Override swipeOffset in your MGSwipeTableCell subclass and layout the static view based on the offset value to simulate a fixed position. Code example (not tested): \r\n\r\n```\r\n- (void)setSwipeOffset:(CGFloat) newOffset\r\n{\r\n    [super setSwipeOffset:newOffset];\r\n    //layout the static view to simulate a fixed position\r\n    UIView * staticView; //Use your view here\r\n    CGRect frame = staticView.frame;\r\n    frame.origin.x = -newOffset;\r\n    staticView.frame = frame;\r\n}\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"MortimerGoro"}}