# \[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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankurvekariya2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ankurvekariya2/32/3135_2.png) [@ankurvekariya2](https://devforum.zoom.us/u/ankurvekariya2)\
**Post date:** [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/1 "2020-02-04T20:39:14Z")

</div>

leave meeting is not working.

---

<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!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:14pm 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/3 "2020-08-21T19:14:36Z")

</div>

Closed on August 21, 2020, 7:14pm UTC


