diff --git a/ios/TabViewImpl.swift b/ios/TabViewImpl.swift index 63c0be4..282f1f5 100644 --- a/ios/TabViewImpl.swift +++ b/ios/TabViewImpl.swift @@ -71,10 +71,10 @@ struct TabViewImpl: View { } onSelect(newValue) } - .onAppear { + .onChange(of: props.scrollEdgeAppearance) { newValue in if #available(iOS 15.0, *) { // This causes issues with lazy loading making the TabView background blink. - UITabBar.appearance().scrollEdgeAppearance = configureAppearance(for: props.scrollEdgeAppearance ?? "") + UITabBar.appearance().scrollEdgeAppearance = configureAppearance(for: newValue ?? "") } } }