Hello,
After building with the iOS 26 SDK, a table-view swipe action created with UIContextualAction is displayed as a circular Liquid Glass button instead of the rectangular action used on earlier iOS versions.
This is how my code look
UIContextualAction *action =
[UIContextualAction contextualActionWithStyle:UIContextualActionStyleNormal
title:@""
handler:^(UIContextualAction *action,
UIView *sourceView,
void (^completionHandler)(BOOL)) {
completionHandler(YES);
}];
action.backgroundColor = UIColor.systemPurpleColor;
action.image = [UIImage imageNamed:@"my_action_image"];
UISwipeActionsConfiguration *configuration =
[UISwipeActionsConfiguration configurationWithActions:@[action]];
configuration.performsFirstActionWithFullSwipe = NO;
return configuration;
Has anyone found a supported workaround that does not require a completely custom swipe implementation?
This occurs only with the new iOS 26 appearance. The same implementation displays correctly on earlier iOS versions.
Thank you.
Topic:
UI Frameworks
SubTopic:
UIKit
0
0
59