#if DEBUG
@interface Xcode14Beta4Fixer : NSObject
@end
@implementation Xcode14Beta4Fixer
+ (void)load
{
Class cls = NSClassFromString(@"_UINavigationBarContentViewLayout");
SEL selector = @selector(valueForUndefinedKey:);
Method impMethod = class_getInstanceMethod([self class], selector);
if (impMethod) {
class_addMethod(cls, selector, method_getImplementation(impMethod), method_getTypeEncoding(impMethod));
}
}
- (id)valueForUndefinedKey:(NSString *)key
{
return nil;
}
@end
#endif
Use for DEBUG only, until fixed by Apple.
May cause unexpected problems...