Skip to content

Commit a6ec0e8

Browse files
committed
fix: remove tvos specific update
1 parent 914b14f commit a6ec0e8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ios/TabViewImpl.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,13 @@ struct TabViewImpl: View {
127127
.tabBadge(tabData?.badge)
128128
.onAppear {
129129
updateTabBarAppearance(props: props, tabBar: tabBar)
130+
131+
#if os(iOS)
130132
guard index >= 4,
131133
let key = tabData?.key,
132134
props.selectedPage != key else { return }
133135
onSelect(key)
134-
#endif
135-
#if os(tvOS)
136-
// TV needs this to correctly update appearance on first render
137-
updateTabBarAppearance(props: props, tabBar: tabBar)
138-
#endif
136+
#endif
139137
}
140138
}
141139
}

0 commit comments

Comments
 (0)