Giter Site home page Giter Site logo

Comments (7)

askopin avatar askopin commented on July 29, 2024 1

first of all, update the lib, I fixed rendering mode behaviour - now it respects rendering mode of both selected and unselected images
on the other hand, if you want to use image with original rendering mode, you should do it explicitly by calling method .withRenderingMode(.alwaysOriginal) of UIImage

from bubble-icon-tabbar.

askopin avatar askopin commented on July 29, 2024

how do you init control? from storyboard or manually?

from bubble-icon-tabbar.

NirajCapermint avatar NirajCapermint commented on July 29, 2024

From storyboard I just assign the class name to tab bar and from code I am using all the things like:

let homeVC = self.storyBoard.instantiateViewController(withIdentifier: SCREENNAME.HOME.rawValue) as! HomeVC
homeVC.tabBarItem = UITabBarItem(title: "Chats", image: #imageLiteral(resourceName: "chat_tab.png"), selectedImage: #imageLiteral(resourceName: "chat_tab_sel.png"))
let tabBarController = BubbleTabBarController()
        tabBarController.viewControllers = [homeVC,roomsVC,storiesVC,profileVC,settingVC]
        tabBarController.tabBar.tintColor = UIColor().tabBarBackgroundColor
        navigationController = UINavigationController(rootViewController: tabBarController)
        navigationController.navigationBar.isHidden = true
        navigationController.navigationBar.barStyle = .black
        navigationController.interactivePopGestureRecognizer?.isEnabled = true
        appDelegate.window?.rootViewController = navigationController

from bubble-icon-tabbar.

NirajCapermint avatar NirajCapermint commented on July 29, 2024

I am already using latest version of library and regarding your suggestion of using method of UIImage withRenderingMode(.alwaysOriginal), I already tried that way and nothing works.

from bubble-icon-tabbar.

askopin avatar askopin commented on July 29, 2024

let's check, the latest binary is 0.8.5?
If it is not - pod install --repo-update
If it is - check sample from branch 'test/original-image-sample' it contains one tab with nontemplate image an it works for me

from bubble-icon-tabbar.

NirajCapermint avatar NirajCapermint commented on July 29, 2024

@askopin Yes, 0.8.5

from bubble-icon-tabbar.

askopin avatar askopin commented on July 29, 2024

@NirajCapermint did you check sample?

from bubble-icon-tabbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.