Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ios/ContextMenuView.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ - (UIMenuElement*) createMenuElementForAction:(ContextMenuAction *)action atInde
actionMenuItem.state =
action.selected ? UIMenuElementStateOn : UIMenuElementStateOff;

// Apply titleColor using attributedTitle
if (titleColor != nil) {
// Apply titleColor using attributedTitle (iOS 16+ only)
if (titleColor != nil && @available(iOS 16.0, *)) {
NSDictionary *attributes = @{NSForegroundColorAttributeName: titleColor};
NSAttributedString *attributedTitle = [[NSAttributedString alloc] initWithString:action.title attributes:attributes];
[actionMenuItem setValue:attributedTitle forKey:@"attributedTitle"];
Expand Down