Code Monkey home page Code Monkey logo

Comments (9)

YERUVAKONIREDDY avatar YERUVAKONIREDDY commented on May 18, 2024 1

I am not getting what people are saying .I have two assets not selected and selected icons for Tab Bar Item Images .I am adding selected image and unselected image to the Tab bar item but after running I am getting selected image colour changing.i checked my assets I don't have that king of blue colour selected asset mine is pink colour
assets
selected
unselected

can you help me is anything wrong

from animated-tab-bar.

carolinapocket avatar carolinapocket commented on May 18, 2024

I'm having the same issue 😑

from animated-tab-bar.

aramikg avatar aramikg commented on May 18, 2024

I'm having a similar issue... All by icons are blue and text are black. when I first run the app the selected icon is black instead of blue. When I go to another tab then it fixes itself.

from animated-tab-bar.

aalzanki avatar aalzanki commented on May 18, 2024

I fixed this in my fork and sent a pull request. For the meantime, here it is: https://github.com/aalzanki/animated-tab-bar

from animated-tab-bar.

aminiz avatar aminiz commented on May 18, 2024

There are a lot of changes in your fork that are not needed for this fix.

Here is the fix. Go into RAMAnimatedTabBarController.swift.

  1. Set your deselected color @IBInspectable var textColor = myDeselectedColorWhichIsLikelyAShadeOfGray
  2. Replace the following code:
            let icon = UIImageView(image: item.image)
            icon.translatesAutoresizingMaskIntoConstraints = false
            icon.tintColor = UIColor.clearColor()

With this:

            let renderImage = item.image?.imageWithRenderingMode(.AlwaysTemplate)
            let icon = UIImageView(image: renderImage)
            icon.translatesAutoresizingMaskIntoConstraints = false
            icon.image = renderImage
            icon.tintColor = item.textColor

from animated-tab-bar.

trungnguyen1791 avatar trungnguyen1791 commented on May 18, 2024

Actually those change only fixes "rotation item" color. With other type of animations. Its doesn't work :(

from animated-tab-bar.

muhasturk avatar muhasturk commented on May 18, 2024

This problem is still here

from animated-tab-bar.

0ber avatar 0ber commented on May 18, 2024

Fixed

from animated-tab-bar.

peebits avatar peebits commented on May 18, 2024

i want to change selected image of tab bar item. In fact i had applied tabbar.selected Image Property

from animated-tab-bar.

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.