titanium-sdk
titanium-sdk copied to clipboard
iOS: Tab titles on iPad TabGroup doesn't work
I have searched and made sure there are no existing issues for the issue I am filing
- [X] I have searched the existing issues
Description
Hi!
I wrote an empty Alloy iOS app with simple Tabgroup and 2 tabs. If you define the titleColor of the tabgroup, it works as expected on iPhone sim, but does not on iPad sim.
More information of this could be found on this tislack conversation
And this post
Expected Behavior
The tabs should have the specified color on titleColor
Actual behavior
The tab's title on iPad are painted gray.
Reproducible sample
index.xml
<Alloy>
<TabGroup>
<Tab title="test" icon="/images/tab1.png"><Window/></Tab>
<Tab title="test" icon="/images/tab1.png"><Window/></Tab>
<Tab title="test" icon="/images/tab1.png"><Window/></Tab>
<Tab title="test" icon="/images/tab1.png"><Window/></Tab>
</TabGroup>
</Alloy>
index.tss
"TabGroup" : {
activeTintColor: "red",
activeTitleColor: "red",
tintColor: "purple",
titleColor: "purple",
tabsBackgroundColor: "#F7F7F7",
}
For some reason, you need to have the image set to make it work. You could download one from here
Steps to reproduce
- Empty ti app
- New alloy project
- Copy and paste above sample
- Run on iOS, first on iPhone to see how it should work
- Then run on iPad sim
Platform
iOS
SDK version you are using
10.1.1.GA
Thanks for reporting!
It seems to happen only on iOS 15. Already tried on iOS 14 iPad simulator and works fine
Thanks @Oxnap! We are currently still a bit busy reviewing / merging open pull requests, but I just assigned it to me to take a closer look soon! :-)