titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

iOS: Tab titles on iPad TabGroup doesn't work

Open francisco-alvarado-espol opened this issue 2 years ago • 3 comments

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

  1. Empty ti app
  2. New alloy project
  3. Copy and paste above sample
  4. Run on iOS, first on iPhone to see how it should work
  5. Then run on iPad sim

Platform

iOS

SDK version you are using

10.1.1.GA

Thanks for reporting!

m1ga avatar Mar 17 '22 19:03 m1ga

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! :-)

hansemannn avatar Mar 21 '22 09:03 hansemannn