Swiftgram/submodules/LegacyComponents/Sources/LegacyComponentsContext.m
2020-02-22 15:38:54 +04:00

20 lines
546 B
Objective-C

#import "LegacyComponentsContext.h"
@implementation LegacyComponentsActionSheetAction
- (instancetype)initWithTitle:(NSString *)title action:(NSString *)action {
return [self initWithTitle:title action:action type:LegacyComponentsActionSheetActionTypeGeneric];
}
- (instancetype)initWithTitle:(NSString *)title action:(NSString *)action type:(LegacyComponentsActionSheetActionType)type {
self = [super init];
if (self != nil) {
_title = title;
_action = action;
_type = type;
}
return self;
}
@end