Description
The waiting room in iOS 13 is presented modally using the new default behavior which means it can be swiped away without the user having to tap the “Leave” button. If the user does this there is no way to join a new waiting room (as far as I can tell).
Which version?
v5.0.24433.0616
To Reproduce(If applicable)
Join a waiting room on iOS 13
Swipe the waiting room down
Attempt to join a new waiting room
Smartphone (please complete the following information):
- Device: iPhone
- OS: iOS 13+
Additional context
For now I’ve swizzled the waiting room to be full screen but I’m not sure if that’s going to cause problems or if there is a better solution I’m missing.
class Zoom {
static func swizzleWaitingRoom() {
if let klass = NSClassFromString("ZPMeetingWaitViewController") {
guard let original = class_getInstanceMethod(klass, #selector(getter: UIViewController.modalPresentationStyle)), let replacement = class_getInstanceMethod(self, #selector(getter:Zoom.modalPresentationStyle))
else { return }
method_exchangeImplementations(original, replacement)
} else {
print("NO CLASS NAMED `ZPMeetingWaitViewController`")
}
}
@objc var modalPresentationStyle: UIModalPresentationStyle {
.fullScreen
}
}