When Home tab opened, there is some white shadow on the bottom and the top sides of the list. But when switching to other tab or return to Home tab this shadow disappearing for a second and appearing again.
Actual for iOS 26.0.1 on simulator and on real device. Below is short example code that can reproduce issue.
When change
let pages = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal)
to
let pages = UIPageViewController(transitionStyle: .pageCurl, navigationOrientation: .horizontal)
issue is not reproduced.
import SwiftUI
@main
struct GlassTestApp: App {
var body: some Scene {
WindowGroup {
MainView()
.ignoresSafeArea()
}
}
}
struct MainView: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UITabBarController {
let controller = UITabBarController()
let home = Home()
home.tabBarItem = UITabBarItem(title: "Home", image: UIImage(systemName: "house"), tag: 1)
let settings = UIHostingController(rootView: Settings())
settings.tabBarItem = UITabBarItem(title: "Settings", image: UIImage(systemName: "gearshape"), tag: 2)
controller.viewControllers = [home, settings]
return controller
}
func updateUIViewController(_ uiViewController: UITabBarController, context: Context) {
}
}
class Home: UINavigationController {
init() {
let pages = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal)
pages.setViewControllers([UIHostingController(rootView: Page1())], direction: .forward, animated: false)
super.init(rootViewController: pages)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
struct Page1: View {
var body: some View {
List {
ForEach(1...100, id: \.self) {
Text("\($0)")
}
}
.listStyle(.plain)
}
}
struct Settings: View {
var body: some View {
Text("Settings")
}
}