Skip to content

Commit 0f426bc

Browse files
committed
Merge branch 'master' of github.com:nativescript-community/ui-material-components
2 parents c2d060c + 7470ab1 commit 0f426bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/bottom-navigation/index.ios.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,13 @@ function updateBackgroundPositions(tabStrip: TabStrip, tabStripItem: TabStripIte
217217
}
218218

219219
const backgroundColor = tabStripItem.style.backgroundColor;
220-
bgView.backgroundColor = backgroundColor instanceof Color ? backgroundColor.ios : backgroundColor;
220+
if (backgroundColor) {
221+
bgView.backgroundColor = backgroundColor instanceof Color ? backgroundColor.ios : backgroundColor;
222+
} else {
223+
// always default to at least a solid white background as fallback
224+
// building with Xcode 13 causes bgView with no background to be fully transparent unless a css background-color is set - this allows original default behavior to work as it always did
225+
bgView.backgroundColor = new Color('#fff').ios;
226+
}
221227
}
222228

223229
function updateTitleAndIconPositions(tabStripItem: TabStripItem, tabBarItem: UITabBarItem, controller: UIViewController) {

0 commit comments

Comments
 (0)