//
//  UIAlertControllerAdditions.m
//
//

#import "UIAlertControllerAdditions.h"

@implementation UIAlertController (Additions)

+ (instancetype _Nonnull)alertWithTitle:(nullable NSString *)title message:(nullable NSString *)message {
	UIAlertController *controller = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
	[controller addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"OK",nil) style:UIAlertActionStyleCancel handler:nil]];
	return controller;
}

- (void)show {
	[[[[UIApplication sharedApplication] keyWindow] rootViewController] presentViewController:self animated:YES completion:nil];
}
@end
