# \[Assert\] Error in UIKit client: -\[UIWindow setScreen:\] should not be called if the client adopts UIScene lifecycle. Call -\[UIWindow setWindowScene:\] instead.\*\*

**URL:** <https://devforum.zoom.us/t/assert-error-in-uikit-client-uiwindow-setscreen-should-not-be-called-if-the-client-adopts-uiscene-lifecycle-call-uiwindow-setwindowscene-instead/7882>\
**Category:** iOS\
**Created:** [February 4, 2020, 8:39pm UTC](https://devforum.zoom.us/t/assert-error-in-uikit-client-uiwindow-setscreen-should-not-be-called-if-the-client-adopts-uiscene-lifecycle-call-uiwindow-setwindowscene-instead/7882 "2020-02-04T20:39:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [February 6, 2020, 1:48am UTC](https://devforum.zoom.us/t/assert-error-in-uikit-client-uiwindow-setscreen-should-not-be-called-if-the-client-adopts-uiscene-lifecycle-call-uiwindow-setwindowscene-instead/7882/2 "2020-02-06T01:48:41Z")

</div>

Hi [ankurvekariya2](https://devforum.zoom.us/u/ankurvekariya2),

Thanks for the post. I see you have another post for this issue:[While using with iOS 13 swiftUI leave meeting not working](https://devforum.zoom.us/t/while-using-with-ios-13-swiftui-leave-meeting-not-working/7881), we will provide assistance over there.

Thanks!

---

_[View the full topic](https://devforum.zoom.us/t/assert-error-in-uikit-client-uiwindow-setscreen-should-not-be-called-if-the-client-adopts-uiscene-lifecycle-call-uiwindow-setwindowscene-instead/7882)._
