Implemented UIViewController nextResponder

Change-Id: I39ed34eef0902760412af2176701a75c6d5f0251
This commit is contained in:
alborrajo
2026-01-10 19:20:34 +01:00
parent 0441228ee2
commit 4ef33ed425

View File

@@ -184,6 +184,18 @@ pub const CLASSES: ClassExports = objc_classes! {
interface_orientation == UIInterfaceOrientationPortrait
}
// UIResponder implementation
// From the Apple UIView docs regarding [UIResponder nextResponder]:
// "UIViewController similarly implements the method
// and returns its views superview."
// https://developer.apple.com/documentation/uikit/uiresponder/next?language=objc
- (id)nextResponder {
let view = msg![env; this view];
let next_responder = msg![env; view superview];
log_dbg!("[(UIView*){:?} nextResponder] => {:?}", this, next_responder);
next_responder
}
@end
};