Skip to content

Commit

Permalink
Also reset the accesoryType in iOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Oct 16, 2019
1 parent d670bd5 commit d583ae8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -1038,10 +1038,10 @@ - (UIImage *)imageFromView:(UIView *)view cropSize:(CGSize)cropSize{

-(void) setAccesoryViewsHidden: (BOOL) hidden
{
if (@available(iOS 13, *)) {
// Hide the accessory to prevent blank box being displayed in iOS13-beta
if (@available(iOS 12, *)) {
// Hide the accessory to prevent blank box being displayed in iOS13 / iOS12
// (blank area would be overlayed in accessory area when using cell in storyboard view)
// This may be fixed in iOS13 production release
// See: https://github.com/MortimerGoro/MGSwipeTableCell/issues/337
if (hidden) {
_previusAccessoryType = self.accessoryType;
self.accessoryType = UITableViewCellAccessoryNone;
Expand Down

0 comments on commit d583ae8

Please sign in to comment.