The IBDesignablesAgent helper process has been renamed to IBAgent as of the Xcode 10 GM seed, so cast an even wider net when trying to detect it.
11 lines
285 B
Objective-C
11 lines
285 B
Objective-C
#import "NSProcessInfo+MGLAdditions.h"
|
|
|
|
@implementation NSProcessInfo (MGLAdditions)
|
|
|
|
- (BOOL)mgl_isInterfaceBuilderDesignablesAgent {
|
|
NSString *processName = self.processName;
|
|
return [processName hasPrefix:@"IBAgent"] || [processName hasPrefix:@"IBDesignablesAgent"];
|
|
}
|
|
|
|
@end
|