I\'m doing some crazy multiple documents inside a single window stuff with the document-based architecture and I\'m 95% done.
I have this two-tier document architect
Here is the simplest one
extension UIResponder { func responderChain() -> String { guard let next = next else { return String(describing: self) } return String(describing: self) + " -> " + next.responderChain() } } // ... print(self.responderChain())