From 1e16d9c1fbe70517f137d5801a091c7f50ac75c0 Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Tue, 28 Sep 2021 08:42:56 +0900 Subject: [PATCH] Fix a tab bar's appearance in Samples app on iOS 15 --- .../Sources/ViewControllers/TabBarViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Examples/Samples/Sources/ViewControllers/TabBarViewController.swift b/Examples/Samples/Sources/ViewControllers/TabBarViewController.swift index 4cbeded2..d4f553b9 100644 --- a/Examples/Samples/Sources/ViewControllers/TabBarViewController.swift +++ b/Examples/Samples/Sources/ViewControllers/TabBarViewController.swift @@ -41,6 +41,10 @@ final class TabBarContentViewController: UIViewController { fpc.addPanel(toParent: self) + if #available(iOS 15, *) { + tabBarController?.tabBar.scrollEdgeAppearance = UITabBarAppearance() + } + switch tabBarItem.tag { case 1: fpc.behavior = TwoTabBarPanelBehavior()