Skip to content

Instantly share code, notes, and snippets.

@cyborch
Created August 30, 2019 16:22
Show Gist options
  • Save cyborch/4943be5cc89e76390aae7dd6c8e3eda1 to your computer and use it in GitHub Desktop.
Save cyborch/4943be5cc89e76390aae7dd6c8e3eda1 to your computer and use it in GitHub Desktop.
#import "AppServicesSwift-Swift.h"
@implementation AppDelegate (Forward)
- (void)forwardInvocation:(NSInvocation *)anInvocation
{
for (UIResponder<UIApplicationDelegate> *service in self.services) {
if ([service respondsToSelector: anInvocation.selector]) {
[anInvocation invokeWithTarget: service];
}
}
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment