# IOS how can i do CustomizeMeetingUI in Swift

**URL:** <https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563>\
**Category:** iOS\
**Created:** [July 29, 2020, 6:32am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563 "2020-07-29T06:32:50Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpotyashka.27.08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/simpotyashka.27.08/32/12530_2.png) [@simpotyashka.27.08](https://devforum.zoom.us/u/simpotyashka.27.08)\
**Post date:** [July 29, 2020, 6:32am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/1 "2020-07-29T06:32:50Z")

</div>

sdc opens in full screen, I need to show video from the joing conference only in the view configured by me, but how to do this on Swift is not clear to me from the instructions.

 ![photo_2020-07-29_11-26-57](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b4163308f778ed67c12c026982fc5bb3820a2368.jpeg) it open on full screen , i need to open in some view. like in image ![Снимок экрана 2020-07-29 в 11.31.49](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/2/263789cf4144dac989a0fb983916bc0e391cb6bb.png)

---

<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:** [July 29, 2020, 10:06am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/2 "2020-07-29T10:06:05Z")

</div>

Hi @simpotyashka.27.08,

Thanks for using Zoom SDK. Based on the screenshot, it seems like you are using Zoom default UI. If you would like to have the meeting UI looks like the 2nd screenshot, you will need to use the Custom UI mode and draw your own meeting UI.

Thanks!

---

<div class="post-metadata">

**Author:** ![simpotyashka.27.08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/simpotyashka.27.08/32/12530_2.png) [@simpotyashka.27.08](https://devforum.zoom.us/u/simpotyashka.27.08)\
**Post date:** [July 31, 2020, 4:58am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/3 "2020-07-31T04:58:07Z")

</div>

Please help,  
i find institution

```auto
@implementation SDKStartJoinMeetingPresenter (CustomizedUIMeetingDelegate)

- (void)onInitMeetingView
{
  // Create & Present View Controller
  NSLog(@"onInitMeetingView....");

  CustomMeetingViewController *vc = [[CustomMeetingViewController alloc] init];
  self.customMeetingVC = vc;
  [vc release];

  [self.rootVC addChildViewController:self.customMeetingVC];
  [self.rootVC.view addSubview:self.customMeetingVC.view];
  [self.customMeetingVC didMoveToParentViewController:self.rootVC];

  self.customMeetingVC.view.frame = self.rootVC.view.bounds;
  ...
}

```

what is self.customMeetingVC = vc; i don’t t have customMeetingVC in my controller, could you help me how create it in swift ?  
I need joing a meeting and see video in custom small view

---

<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:** [August 1, 2020, 1:27am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/4 "2020-08-01T01:27:47Z")

</div>

Hi @simpotyashka.27.08,

Thanks for the reply. If you are using the Custom UI mode, you have full control of how to draw your UI. The code in the sample app is just for demo purposes so you could refer to the implementation and modify them based on your project.

Thanks!

---

<div class="post-metadata">

**Author:** ![simpotyashka.27.08](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/simpotyashka.27.08/32/12530_2.png) [@simpotyashka.27.08](https://devforum.zoom.us/u/simpotyashka.27.08)\
**Post date:** [August 6, 2020, 7:41am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/5 "2020-08-06T07:41:49Z")

</div>

let getservice = mobileRTC.getMeetingService()  
if let service = getservice {  
service.delegate = self  
service.customizedUImeetingDelegate = self  
}  
extension ViewController: MobileRTCMeetingServiceDelegate, MobileRTCAuthDelegate, MobileRTCCustomizedUIMeetingDelegate {

> **func onInitMeetingView() {**

}

> func onDestroyMeetingView() {

}  
}

onInitMeetingView , onDestroyMeetingView not called

---

<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:** [August 12, 2020, 4:36am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/6 "2020-08-12T04:36:58Z")

</div>

Hi @simpotyashka.27.08,

Thanks for the reply. Did you enable the custom UI before using the 2 callbacks you are mentioning?

After successfully authenticated the SDK, call the following interface to enable the Custom UI mode:

```auto
/*!
 @brief Enable Custom In-Meeting UI in meeting.
 */
@property (assign, nonatomic) BOOL enableCustomMeeting;

```

Then you could use the following callback to init/destroy your UI

```auto
/*!
 @brief Notify user to create a custom in-meeting UI. 
 */
- (void)onInitMeetingView;

/*!
 @brief Notify user to destroy the custom in-meeting UI. 
 */
- (void)onDestroyMeetingView;

```

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![pgudivada](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@pgudivada](https://devforum.zoom.us/u/pgudivada)\
**Post date:** [February 5, 2021, 9:54pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/7 "2021-02-05T21:54:36Z")

</div>

I tried to enable the custom meeting. However I am not able to get reference to meeting settings.

```auto
guard let meetingSettings = MobileRTC.shared().getMeetingSettings() else {
	return
}
meetingSettings.enableCustomMeeting = true

```

`meetingSettings` is returning nil. Is the above the right way to enable the custom meeting.

SDK Version I am using is **5.2.1 (41739.1022)**

iOS is 14.4.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 5, 2021, 10:54pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/8 "2021-02-05T22:54:35Z")

</div>

Hi @pgudivada,

Typically if this method is returning nil, it is because the SDK has not properly been setup yet. Please ensure that you have already successfully initialized the SDK following the steps outlined [here](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization). Let me know if you have any additional questions. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![pgudivada](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@pgudivada](https://devforum.zoom.us/u/pgudivada)\
**Post date:** [February 5, 2021, 11:19pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/9 "2021-02-05T23:19:03Z")

</div>

if the initialization is not successful, I should not be able to show the Zoom View Controller. I am able to participate in the zoom meetings via the app I built.  
Also the delegate call back in `MobileRTCAuthDelegate`

```auto
func onMobileRTCAuthReturn(_ returnValue: MobileRTCAuthError)

```

returns successful state (MobileRTAuthError\_Success)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 6, 2021, 12:28am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/10 "2021-02-06T00:28:02Z")

</div>

Hi @pgudivada,

Yes, if you are able to join meetings, that does mean that you are successfully initializing the SDK. However, since this initialization is an synchronous process, you must ensure that you are trying to call `getMeetingSettings` _after_ the successful callback in the delegate. Can you please confirm that you are calling this method after receiving that callback?

Thanks!

---

<div class="post-metadata">

**Author:** ![pgudivada](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@pgudivada](https://devforum.zoom.us/u/pgudivada)\
**Post date:** [February 8, 2021, 2:32pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/11 "2021-02-08T14:32:44Z")

</div>

@jon, Thanks for that info. I did not find explicit reference to that in the [SDK doc.](https://marketplacefront.zoom.us/sdk/meeting/ios/interface_mobile_r_t_c.html#details). I thought initializing the class is sufficient to get access to these services.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 8, 2021, 6:26pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/12 "2021-02-08T18:26:22Z")

</div>

Hi @pgudivada,

Thank you for the feedback on our documentation. We are currently working on major improvements for our SDK docs, so I will make note of this in order to ensure it is absolutely clear in the future. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![pgudivada](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@pgudivada](https://devforum.zoom.us/u/pgudivada)\
**Post date:** [February 9, 2021, 3:28pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/13 "2021-02-09T15:28:28Z")

</div>

@jon.zoom On a related note with regards to documenation, is there a page that talks about the delegate call backs in the sample app of yours `MobileRTCSample`. I am looking at your [customization page](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/in-meeting-function/customized-in-meeting-ui/overview), I do not find any reference how various callbacks of `MeetingDelegate`, `VideoServiceDelegate` etc., are getting triggered. Any pointers in that direction will help.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 9, 2021, 11:44pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/14 "2021-02-09T23:44:26Z")

</div>

Hey @pgudivada,

To assign a class as the MobileRTCMeetingServiceDelegate you would do the following:

> class yourClass: MobileRTCMeetingServiceDelegate {  
> …  
> …  
> MobileRTC.shared()?.getMeetingService.delegate = self  
> …  
> …  
> }

In the sample app there is an objective-c version of this code in the SDKStartJoinMeetingPresent.m file in the initDelegate function.

MobileRTCVideoServiceDelegate is also a MobileRTCMeetingServiceDelegate, so whatever class you assigned to be the meeting delegate will also be the video delegate. You would just have to add the extra conformance:

> class yourClass: MobileRTCMeetingServiceDelegate, MobileRTCVideoServiceDelegate {  
> …  
> …  
> MobileRTC.shared()?.getMeetingService.delegate = self  
> …  
> …  
> }

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Ras](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Ras](https://devforum.zoom.us/u/Ras)\
**Post date:** [August 15, 2021, 6:51am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/15 "2021-08-15T06:51:33Z")

</div>

Custom UI feature is very very poorly documented.  
Will it be updated in near future or Zoom is giving up on legacy SDKs and APIs?

There is absolutely no mention of really building custom UI (only how to ENABLE it), what are the video views, how to align them, what protocols or classes they need to relate or conform to?  
onInitMeetingView and onDestroyMeetingView does say absolutely nothing about custom UI, has no parameters or reqire return views, or whatsoever, and their functional purposes are very questionable.  
Custom UI at least means custom video views, sizing and alignment, with custom buttons. So how and where to connect those views to Zoom API, how to get specific user to connect to specific UIView? Any material that slightly mentions that would be highly useful, documentation page is already messed up with very legacy and barely useful sample project description is very hard to grind useful pieces of puzzle for building custom UI as if someone intentionally trying to make it complicated. @Michael_Condon

Please can we have info about actually building custom ui, even if its poorly aligned video views on an empty page. At least we’d get idea of further requirements after enabling it how to actually get the video on a screen. Not always FullScreenVC. Not always on NavigationController.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 17, 2021, 7:18pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/16 "2021-08-17T19:18:38Z")

</div>

Hey @Ras,

Thanks for using the dev forum!

We are aware that our custom UI docs are in need of attention and we are working on updating/re-writing them as we speak. In the meantime, I have a thread where I explain how to set it up here: [I want to add a custom button in the meeting option toolbar in my zoom app in ios. I see there are provisions to hide or show the toolbar or even specific buttons. But is there any way to add a custom button in the toolbar under more in IOS? - #11 by Michael\_Condon](https://devforum.zoom.us/t/i-want-to-add-a-custom-button-in-the-meeting-option-toolbar-in-my-zoom-app-in-ios-i-see-there-are-provisions-to-hide-or-show-the-toolbar-or-even-specific-buttons-but-is-there-any-way-to-add-a-custom-button-in-the-toolbar-under-more-in-ios/50662/11)

Can you take a look and let me know if you have any questions?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Ras](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Ras](https://devforum.zoom.us/u/Ras)\
**Post date:** [August 29, 2021, 9:23am UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/17 "2021-08-29T09:23:55Z")

</div>

Thank you, I was able to set the logic but unfortunately it doesnt work well.  
While not custom ui works well, enabling custom ui creating several critical issues as:  
**onSinkMeetingUserJoin** is being called but

```auto
if let meetingService = MobileRTC.shared().getMeetingService(){
connectedUsers = meetingService.getInMeetingUserList() ?? []
}

```

is returning nil on **getInMeetingUserList()** although I know there are users in room from onSinkMeetingUserJoin.

```auto
guard let meetingService = MobileRTC.shared().getMeetingService() else { return false }
let isHost = meetingService.isHostUser(userID)

```

Always returns false (isHost).  
Also,

```auto
let showAttendeeVideoSuccessful = remoteUserVideoView.showAttendeeVideo(withUserID: userID)
		
		if showAttendeeVideoSuccessful {
			print("Started showing remote user video.")
		} else {
			print("Failed to show remote user video.")
		}

```

Always prints _“Failed to show remote user video.”_ and calling **remoteUserVideoView.getUserID()** afterwards always shows **0**

I joineed room with meetingNumber, password and displayName.  
Disabling **meetingSettings.enableCustomMeeting** to false magically shows new viewcontroller with everyhting functioning perfectly.

Its not webinar, but I guess part of the issues related to: [Unable to Get In-Meeting User List as a Webinar Attendee](https://devforum.zoom.us/t/unable-to-get-in-meeting-user-list-as-a-webinar-attendee/40505)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [August 30, 2021, 5:01pm UTC](https://devforum.zoom.us/t/ios-how-can-i-do-customizemeetingui-in-swift/25563/18 "2021-08-30T17:01:19Z")

</div>

Hey @Ras,

Since this is the same issue described in your comment here: [Unable to Get In-Meeting User List as a Webinar Attendee](https://devforum.zoom.us/t/unable-to-get-in-meeting-user-list-as-a-webinar-attendee/40505), let’s move the conversation over there to keep things organized 🙂

Thanks!  
Michael
