# Do a custom UI for iOS swift

**URL:** <https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185>\
**Category:** iOS\
**Created:** [November 12, 2021, 11:55am UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185 "2021-11-12T11:55:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![janTatang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jantatang/32/33803_2.png) [@janTatang](https://devforum.zoom.us/u/janTatang)\
**Post date:** [November 12, 2021, 11:55am UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/1 "2021-11-12T11:55:14Z")

</div>

Hello, so I want to create custom UI for iOS swift, is there any sample project available?  
Is there any best method to get host screen instead using user id?  
Thank you

---

<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:** [November 15, 2021, 11:28pm UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/2 "2021-11-15T23:28:35Z")

</div>

Hey @janTatang,

Thanks for using the dev forum!

We do not have an official guide for this yet, but I wrote a short tutorial for this 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? - #9 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/9)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![janTatang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jantatang/32/33803_2.png) [@janTatang](https://devforum.zoom.us/u/janTatang)\
**Post date:** [November 16, 2021, 3:08am UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/3 "2021-11-16T03:08:40Z")

</div>

@Michael_Condon  
thanks for your answer

is there any example to get Host ID or only display host screen?  
because I call a `MobileRTCVideoView` process on `onWaitingRoomStatusChange(_:)` and if there’s a lot of attenders in the room it would take a long time to checking all userID to determine it’s host or not.

Thank you

---

<div class="post-metadata">

**Author:** ![sigitcode](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sigitcode/32/18827_2.png) [@sigitcode](https://devforum.zoom.us/u/sigitcode)\
**Post date:** [November 17, 2021, 4:49am UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/4 "2021-11-17T04:49:26Z")

</div>

is there a method from the API that is faster than doing a loop to check which user is the host ?  
temporarily i do this

```auto
let userList = meetingService.getInMeetingUserList()
userList.map { usersId in
      for userId in usersId {
           if meetingService.isHostUser(UInt(userId)) {
               print("UserID that is the host is \(meetingService.userInfo(byID: UInt(userId)))")
           }
      }
 }

```

is there a more practical way?

---

<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:** [November 18, 2021, 9:34pm UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/5 "2021-11-18T21:34:15Z")

</div>

Hey @janTatang @sigitcode,

We do not have an interface for this unfortunately, but you can listen to the callback onMeetingHostChange and store the hostID that way.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![janTatang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jantatang/32/33803_2.png) [@janTatang](https://devforum.zoom.us/u/janTatang)\
**Post date:** [November 20, 2021, 3:35pm UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/6 "2021-11-20T15:35:24Z")

</div>

Hello @Michael_Condon

so after I follow a guide you share for ios finaly I can implement it on swift.  
So there a think I want to ask.

I do a test when I input wrong room password, and I got a pop-up like in the picture

 ![image0](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/c/fccb9b6c8113c5f4f0941d6e29fca274e50da432.jpeg)

is posible to make it not display popup like on the picture when I input wrong password? I already implement `MobileRTC.shared().getMeetingSettings()?.enableCustomMeeting = true`

Thank you

---

<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:** [December 1, 2021, 11:52pm UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/7 "2021-12-01T23:52:10Z")

</div>

Hey @janTatang

If you implement the onJoinMeetingInfo delegate callback in MobileRTCMeetingServiceDelegate, the popup will not appear and you can enter the required info programmatically.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![janTatang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jantatang/32/33803_2.png) [@janTatang](https://devforum.zoom.us/u/janTatang)\
**Post date:** [December 2, 2021, 11:44am UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/9 "2021-12-02T11:44:32Z")

</div>

thanks for your guide, it’s working

---

<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:** [December 3, 2021, 10:59pm UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/10 "2021-12-03T22:59:49Z")

</div>

Hey @janTatang,

Awesome! Happy to hear 🙂

Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 3, 2022, 9:00am UTC](https://devforum.zoom.us/t/do-a-custom-ui-for-ios-swift/60185/11 "2022-01-03T09:00:29Z")

</div>

Closed on January 3, 2022, 9:00am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
