mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-24 11:28:52 -04:00
29 lines
830 B
Objective-C
29 lines
830 B
Objective-C
//
|
|
// FLEXLayerShortcuts.m
|
|
// FLEX
|
|
//
|
|
// Created by Tanner Bennett on 12/12/19.
|
|
// Copyright © 2020 FLEX Team. All rights reserved.
|
|
//
|
|
|
|
#import "FLEXLayerShortcuts.h"
|
|
#import "FLEXShortcut.h"
|
|
#import "FLEXImagePreviewViewController.h"
|
|
|
|
@implementation FLEXLayerShortcuts
|
|
|
|
+ (instancetype)forObject:(CALayer *)layer {
|
|
return [self forObject:layer additionalRows:@[
|
|
[FLEXActionShortcut title:@"Preview Image" subtitle:nil
|
|
viewer:^UIViewController *(CALayer *layer) {
|
|
return [FLEXImagePreviewViewController previewForLayer:layer];
|
|
}
|
|
accessoryType:^UITableViewCellAccessoryType(CALayer *layer) {
|
|
return CGRectIsEmpty(layer.bounds) ? UITableViewCellAccessoryNone : UITableViewCellAccessoryDisclosureIndicator;
|
|
}
|
|
]
|
|
]];
|
|
}
|
|
|
|
@end
|