rhanb/nativescript-bottombar

IOS: inactiveColor not working

Closed this issue · 6 comments

i use following setting in version: 3.0.4

	bottomBar.hide = false;
	bottomBar.titleState = TITLE_STATE.ALWAYS_SHOW;
	bottomBar.inactiveColor = "red";
	bottomBar.accentColor = "deepskyblue";
	bottomBar.colored = false;
	bottomBar.uncoloredBackgroundColor = "ghostwhite"

in android it is working fine but on ios I got:

screen shot 2017-10-03 at 21 28 44

the text color of all inactive items is back and not red and the icon color of each item is the accentColor regardless of active or not.

rhanb commented

@nicHoch ,

Thanks for the report! I need to work on the Swift library, I'll ping you when it's fixed 😄

rhanb commented

@nicHoch ,

I updated the Swift side, it should work now. To get the latest version of the Swift Library you just have to:

- rm -rf platforms/ios
- npm run ios

Since it directly point to the github repo and I updated it no need of a new version on the plugin and deleting the ios platform and run the application again will download directly the latest version on the github repo.

it is still the very same as in the initial description. the text color of all inactive items is black and not red and the icon color of each item is the accentColor regardless of active or not.

please reopen

i found out you have to set the items before you set the colors of the bottomBar then it is working as expected.

rhanb commented

that's weird it was working for me. thanks for the help will check this out asap as I'll fix the hard crash issue. but feel free to make a pr on my fork @nicHoch

rhanb commented

should be working after #45 fix