Description
Note: This only occurs for iOS 14, it works as expected on iOS 13.7
When using
largeTitleDisplayMode: Ti.UI.iOS.LARGE_TITLE_DISPLAY_MODE_ALWAYS
on a Window that contains a ListView or TableView then when the Window opens it.
The code below demonstrates this when using a NavigationWindow but the issue can also be seen when using a TabGroup
const window = Ti.UI.createWindow({
backgroundColor: '#fff',
title: 'Titanium rocks!',
titleAttributes: {
color: 'red'
},
largeTitleEnabled: true,
largeTitleDisplayMode: Ti.UI.iOS.LARGE_TITLE_DISPLAY_MODE_ALWAYS
});
const nav = Ti.UI.createNavigationWindow({ window });
// window.add(Ti.UI.createListView({
// sections: [
// Ti.UI.createListSection({ headerTitle: 'Fruits', items: [ { properties: { title: 'Apple' } }, { properties: { title: 'Banana' } } ] })
// ]
// }));
window.add(Ti.UI.createTableView({
data: [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ]
}));
nav.open();
Steps to reproduce
1. Add the above code to an existing app.js
2. Build to an iOS 14 device/sim
Actual
When the app loads the text in the navigation bar will not be in large title mode
Expected
When the app loads, the text in the navigation bar should be in large title mode
PR - https://github.com/appcelerator/titanium_mobile/pull/12490
Related to TIMOB-28131
FR Passed, waiting on Jenkins build.
merged to master for 10.0.0 target, backport merged to 9_3_X branch as well.