# \[iOS\] How do I know if a virtual background is already setup?

**URL:** <https://devforum.zoom.us/t/ios-how-do-i-know-if-a-virtual-background-is-already-setup/24773>\
**Category:** iOS\
**Created:** [July 21, 2020, 3:59pm UTC](https://devforum.zoom.us/t/ios-how-do-i-know-if-a-virtual-background-is-already-setup/24773 "2020-07-21T15:59:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas.bonnet](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nicolas.bonnet/32/19492_2.png) [@nicolas.bonnet](https://devforum.zoom.us/u/nicolas.bonnet)\
**Post date:** [July 21, 2020, 3:59pm UTC](https://devforum.zoom.us/t/ios-how-do-i-know-if-a-virtual-background-is-already-setup/24773/1 "2020-07-21T15:59:53Z")

</div>

I am using the latest SDK (5.0) on a iphone 11 pro

So far I managed to set a virtual background and change it. Now I am trying to allow the user to remove the virtual background when there is one in place.  
Since I couldn’t find a method `-(BOOL)isUsingBGImage` or something similar, I tried to loop on `getBGImageList` and check if one is selected.

It looks like this (Swift)

`if let bgImageList = meetingService.getBGImageList() as? [ZoomSDKVirtualBGImageInfo], `  
`let _ = bgImageList.first(where: { (info) -> Bool in return info.isSelect }) {`  
`...`  
`}`

But I am facing a compilation error:

`Undefined symbol: _OBJC_CLASS_$_ZoomSDKVirtualBGImageInfo`

Can you advise me?

Best  
Nicolas

---

<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 24, 2020, 4:43am UTC](https://devforum.zoom.us/t/ios-how-do-i-know-if-a-virtual-background-is-already-setup/24773/3 "2020-07-24T04:43:39Z")

</div>

Hi @nicolas.bonnet,

Thanks for the post and the info. We are able to identify an issue with the info provided and we will fix this in the next release.

Thanks!
