Upload ImageView (profile image) to TabBar merchandise (UITabBarController) the use of swift 5 – iOS

Add ImageView (profile picture) to TabBar item (UITabBarController) using swift 5 - iOS

Including symbol view to tab bar is moderately simple.

First create new unmarried view software. Embed ViewController inside of tabBarController and upload new tab identify it my account.

After doing all above stuff you’ll see output as the next symbol

Embed ViewController inside tabBarController and add new tab name it my account.

Now drag some pattern symbol to symbol property and identify it as profile.

Upload the next extension in your mission, you’ll be able to upload after the ViewController.swift magnificence ends.

extension UITabBarController {

func addSubviewToLastTabItem(_ imageName: String)
}

Now open ViewController.swift report upload the next approach:

override func viewDidLayoutSubviews() 

That is it, Now run the app you’ll the required effects as observe:

Add ImageView (profile picture) to TabBar item (UITabBarController) using swift 5 - iOS