FS.O5 FS.O5 - 1 year ago 196
iOS Question

Add gif animation under UITabBar item

I have a

with 5 tabs.

I have a
file I want to place under each tab.

I'm using a 3rd party API (
extension) called
for using the gif so the question can be asked like that too:

"How can I place a
under a

But I wanted to be more specific to help you understand better.

Answer Source

Try this to change the background of your tabBar self.tabBarController?.tabBar.backgroundImage = UIImageView(image: UIImage.gifWithName("yourGifName")) Keep in my mind that this syntax is from Swift 3 - if you are using Swift 2, you might have to change it a bit

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download