Skip to content

Commit

Permalink
1.1.4 - Change delete swipe cell to icon only
Browse files Browse the repository at this point in the history
  • Loading branch information
香風智乃 authored and 香風智乃 committed Jan 28, 2019
1 parent de4ac64 commit a153805
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions Shukofukurou-IOS/Assets.xcassets/delete.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons8-trash-2.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons8-trash-1.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons8-trash.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Shukofukurou-IOS/View Controllers/ListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ - (UITableViewCell *)generateAnimeEntryCellAtIndexPath:(NSIndexPath *)indexPath
// Left
__weak ListViewController *weakSelf = self;
int currentservice = [listservice getCurrentServiceID];
aentrycell.leftButtons = @[[MGSwipeButton buttonWithTitle:@"Delete" backgroundColor:UIColor.redColor callback:^BOOL(MGSwipeTableCell * _Nonnull cell) {
aentrycell.leftButtons = @[[MGSwipeButton buttonWithTitle:@"" icon:[UIImage imageNamed:@"delete"] backgroundColor:UIColor.redColor callback:^BOOL(MGSwipeTableCell * _Nonnull cell) {
NSDictionary *entry = weakSelf.filteredlist[indexPath.row];
[weakSelf deleteTitle:((NSNumber *)entry[@"id"]).intValue withInfo:entry];
return true;
Expand Down Expand Up @@ -564,7 +564,7 @@ - (UITableViewCell *)generateMangaEntryCellAtIndexPath:(NSIndexPath *)indexPath
// Left
__weak ListViewController *weakSelf = self;
int currentservice = [listservice getCurrentServiceID];
mentrycell.leftButtons = @[[MGSwipeButton buttonWithTitle:@"Delete" backgroundColor:UIColor.redColor callback:^BOOL(MGSwipeTableCell * _Nonnull cell) {
mentrycell.leftButtons = @[[MGSwipeButton buttonWithTitle:@"" icon:[UIImage imageNamed:@"delete"] backgroundColor:UIColor.redColor callback:^BOOL(MGSwipeTableCell * _Nonnull cell) {
NSDictionary *entry = weakSelf.filteredlist[indexPath.row];
[weakSelf deleteTitle:((NSNumber *)entry[@"id"]).intValue withInfo:entry];
return true;
Expand Down

0 comments on commit a153805

Please sign in to comment.