How do I inspect the view hierarchy in iOS?

swift: po UIApplication.sharedApplication().keyWindow?.recursiveDescription()

objective c: po [[UIWindow keyWindow] recursiveDescription]