Skip to content

Commit

Permalink
refactor: onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancom committed Oct 17, 2024
1 parent ca3e5f3 commit a13a79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/TabViewImpl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? "")
}
}
}
Expand Down

0 comments on commit a13a79a

Please sign in to comment.