{"action":"created","issue":{"url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/220","repository_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell","labels_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/220/comments","events_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/220/events","html_url":"https://github.com/MortimerGoro/MGSwipeTableCell/issues/220","id":169983900,"number":220,"title":"How to call a method when a swipe has begun or prevent unswipe when tableView.reloadData()?","user":{"login":"Reservations","id":12026775,"avatar_url":"https://avatars.githubusercontent.com/u/12026775?v=3","gravatar_id":"","url":"https://api.github.com/users/Reservations","html_url":"https://github.com/Reservations","followers_url":"https://api.github.com/users/Reservations/followers","following_url":"https://api.github.com/users/Reservations/following{/other_user}","gists_url":"https://api.github.com/users/Reservations/gists{/gist_id}","starred_url":"https://api.github.com/users/Reservations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reservations/subscriptions","organizations_url":"https://api.github.com/users/Reservations/orgs","repos_url":"https://api.github.com/users/Reservations/repos","events_url":"https://api.github.com/users/Reservations/events{/privacy}","received_events_url":"https://api.github.com/users/Reservations/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-08T17:51:05Z","updated_at":"2016-08-17T12:42:48Z","closed_at":null,"body":"I have a process in the background that modifies realm, which causes the table view to constantly reload data when it is running. The problem with this is that as the table view is constantly reloaded, the MGSwipeTableViewCells in my table view are also reloaded and are forced to the unswiped position.\r\n\r\nIs there a way either: \r\n1. Prevent the MGSwipeTableViewCells from unswiping upon calling tableView.reloadData()\r\n2. Access the method called when the swipe gesture is began in order to temporarily pause my background process and subsequently stop calling tableView.reloadData() while a swipe action is being done.\r\n\r\nThanks for the help."},"comment":{"url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/comments/240399248","html_url":"https://github.com/MortimerGoro/MGSwipeTableCell/issues/220#issuecomment-240399248","issue_url":"https://api.github.com/repos/MortimerGoro/MGSwipeTableCell/issues/220","id":240399248,"user":{"login":"FloLecoeuche","id":2616127,"avatar_url":"https://avatars.githubusercontent.com/u/2616127?v=3","gravatar_id":"","url":"https://api.github.com/users/FloLecoeuche","html_url":"https://github.com/FloLecoeuche","followers_url":"https://api.github.com/users/FloLecoeuche/followers","following_url":"https://api.github.com/users/FloLecoeuche/following{/other_user}","gists_url":"https://api.github.com/users/FloLecoeuche/gists{/gist_id}","starred_url":"https://api.github.com/users/FloLecoeuche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloLecoeuche/subscriptions","organizations_url":"https://api.github.com/users/FloLecoeuche/orgs","repos_url":"https://api.github.com/users/FloLecoeuche/repos","events_url":"https://api.github.com/users/FloLecoeuche/events{/privacy}","received_events_url":"https://api.github.com/users/FloLecoeuche/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T12:42:48Z","updated_at":"2016-08-17T12:42:48Z","body":"I had the same issue.\r\nUse insertRowsAtIndexPaths, reloadRowsAtIndexPaths, deleteRowsAtIndexPaths instead reloadData and before reloadRowsAtIndexPaths check if the swipeOffset of the current MGSwipeTableCell; if it's true the swipe is activated  so don't reload that cell for keep the swipe.\r\nI hope this answer help you."}}
{"actor":{"display_login":"FloLecoeuche"}}