其他分享
首页 > 其他分享> > 适配iOS15导航栏

适配iOS15导航栏

作者:互联网

if #available(iOS 13.0, *) {

            let appearance = UINavigationBarAppearance()

            appearance.configureWithOpaqueBackground()

            appearance.titleTextAttributes = [NSAttributedString.Key.font: KLargeFont,NSAttributedString.Key.foregroundColor:Color_292A2D_DEDFDF]

            navigationBar.standardAppearance = appearance

            navigationBar.scrollEdgeAppearance = navigationBar.standardAppearance

        } else {

            self.navigationBar.titleTextAttributes = [NSAttributedString.Key.font: KLargeFont,NSAttributedString.Key.foregroundColor:Color_292A2D_DEDFDF]

            let image = UIImage.xj.create(color: Color_FFFFFF_151515)

        }

标签:iOS15,Color,适配,NSAttributedString,292A2D,Key,appearance,导航,navigationBar
来源: https://www.cnblogs.com/yang-shuai/p/16370095.html