Comments (2)
I solved this issue by creating an "if condition" around
createConstraints(icon, container: container, size: itemImage.size, yOffset: -5)
in the RAMAnimatedTabBarController, and change the yOffset.
if let itemImage = item.image {
if 2 == index { // selected first elemet
createConstraints(icon, container: container, size: itemImage.size, yOffset: 0)
} else {
createConstraints(icon, container: container, size: itemImage.size, yOffset: -5)
}
}
from animated-tab-bar.
@nassarofficial I couldn't get what you did exactly. Can you please explain it from the beginning? I installed the pods, set the storyboard (tabvc and views) and set the classes as shown in the read.me. The items are animating. However, my image insets (offsets) for bar items doesn't seem to work. As far as I understand, you put it in ViewDidLoad of the RAMAnimatedTabBarController. What exactly do I need to put, and where? Can you please guide me on that? I'd be grateful
from animated-tab-bar.
Related Issues (20)
- change behavior when tab bar item tapped twice HOT 4
- Setting image and title via nib not storyboard HOT 1
- Animates two items at the same time HOT 1
- Icons become 30x30 if you make setViewControllers second/third time HOT 1
- How to prohibit pictures from rendering HOT 1
- RTL not supported? HOT 1
- Seting animation programmatically does not work HOT 2
- Animation does not work
- Hiding tabbar issue HOT 1
- TabBarItem text color doesn't obey the tint color when selected HOT 1
- Demo is not working HOT 2
- First tabbarItem Text tintColor is wrong HOT 2
- selectedImage property makes me confused HOT 1
- Followed everything but I didn't get anythings HOT 5
- The dividing line disappears HOT 2
- How to integrate with lottie?
- iOS 16 crashes HOT 3
- bar appering over iOS bottom line
- Increase TabBar Height
- Do it support git image
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 animated-tab-bar.