Comments (7)
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.
how do you init control? from storyboard or manually?
from bubble-icon-tabbar.
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.
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.
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.
@askopin Yes, 0.8.5
from bubble-icon-tabbar.
@NirajCapermint did you check sample?
from bubble-icon-tabbar.
Related Issues (20)
- Very good interactive effect, can I use Android to achieve it? HOT 1
- clips UIViewController's main main view
- How to set badge value? HOT 4
- Selected Images not showing, showing only default one. HOT 2
- Subclassing tabbar crashes app HOT 1
- How to set badge value by Coding?
- Update to Swift 5.2
- hidesBottomBarWhenPushed not working HOT 1
- change tab bar item tint color programatically
- Language Issue
- iOS default tabbar element appear on first click HOT 1
- Background color
- Tabbar text color change
- How to make tab bar items centered if there are only two?
- How to update the badge value?
- _barHeight didn't work when change value ??
- Cant add/change badge value. Any ideas?
- Dark mode not supported? HOT 1
- Lables clip on Iphone SE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bubble-icon-tabbar.