Skip to content

Commit ba2af14

Browse files
committed
Disable KVO auto-subclassing of internal Swift bridging types
1 parent e012655 commit ba2af14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/stubs/SwiftNativeNSXXXBase.mm.gyb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ SWIFT_RUNTIME_STDLIB_API
9393
return swift_tryRetain(reinterpret_cast<HeapObject*>(self)) != nullptr;
9494
}
9595

96+
+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key {
97+
return NO;
98+
}
99+
96100
#pragma clang diagnostic push
97101
#pragma clang diagnostic ignored "-Wobjc-missing-super-calls"
98102
- (void)dealloc {

0 commit comments

Comments
 (0)