How to use UIWindowScene.windows on iOS 15? [duplicate]

(Tested with iOS 15.2 running on Xcode 13.2.1) Improving on Rachid’s answer, here is a Swiftier version: extension UIApplication { var keyWindow: UIWindow? { // Get connected scenes return UIApplication.shared.connectedScenes // Keep only active scenes, onscreen and visible to the user .filter { $0.activationState == .foregroundActive } // Keep only the first `UIWindowScene` .first(where: { … Read more

Command CompileSwiftSources failed with a nonzero exit code XCode 13

I had this problem surface in Xcode 13.0. Mohamed Tarek‘s solution worked for me, but… I was using cocoapods, so I needed a solution not blown away by pod install; or more specifically fixed with pod install. Adding the following to the bottom of the Podfile resolved it. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each … Read more

Xcode doesn’t support iOS 15.0

Without updating Xcode, you need to put the relevant device file in the DeviceSupport section and run Xcode again. DeviceSupport files are located here. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport https://github.com/filsv/iPhoneOSDeviceSupport You can download iOS15 devicesupport file from here, then you need to unzip, then you need to put it in DeviceSupport section on your mac. When you restart Xcode, … Read more

iOS 15 UITabBarController’s tabBar background color turns black

I had the same issue and found the same link that is in your question. I used the same approach for the tab bar. This is the code i am using and it works perfectly. if #available(iOS 15.0, *) { let appearance = UITabBarAppearance() appearance.configureWithOpaqueBackground() appearance.backgroundColor = customColor self.tabController.tabBar.standardAppearance = appearance self.tabController.tabBar.scrollEdgeAppearance = view.standardAppearance }

iOS 15 Navigation Bar Transparent

To use your own colour scheme, use the following: Swift // White non-transucent navigatio bar, supports dark appearance if #available(iOS 15, *) { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() UINavigationBar.appearance().standardAppearance = appearance UINavigationBar.appearance().scrollEdgeAppearance = appearance } Objective-c if (@available(iOS 15.0, *)) { UINavigationBarAppearance *navBarAppearance = [[UINavigationBarAppearance alloc] init]; navBarAppearance.backgroundColor = [UIColor redColor]; [navBarAppearance configureWithOpaqueBackground]; [UINavigationBar appearance].standardAppearance … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)