Files
comaps/iphone/Maps/Classes/CustomAlert/MWMEditorViralAlert.mm
Yannik Bloscheck 15c7e71866 [ios] Switched OSM profile to SwiftUI and redesigned it
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
2025-07-06 13:30:59 +02:00

31 lines
774 B
Plaintext

#import "MWMEditorViralAlert.h"
#import "MWMActivityViewController.h"
#import "MWMAlertViewController.h"
#import "SwiftBridge.h"
@interface MWMEditorViralAlert ()
@property(weak, nonatomic) IBOutlet UIButton* shareButton;
@end
@implementation MWMEditorViralAlert
+ (nonnull instancetype)alert {
return [NSBundle.mainBundle loadNibNamed:[self className] owner:nil options:nil].firstObject;
}
- (IBAction)shareTap {
[self close:^{
MWMActivityViewController* shareVC = [MWMActivityViewController shareControllerForEditorViral];
[shareVC presentInParentViewController:self.alertController.ownerViewController
anchorView:[BottomTabBarViewController controller].view];
}];
}
- (IBAction)cancelTap {
[self close:nil];
}
@end