iOS 13 – WkWebView: audio stops when in background

I guess you are using Capacitor. I’m running into the same issue as you and it looks like the last error about ‘no background task exists’ has something to do with Capacitor’s BackgroundTask Plugin, wether you’re using it or not (BackgroundTask.swift) It’s clear something changed between iOS 12 and iOS 13, but so far haven’t … Read more

App delegate methods aren’t being called in iOS 13

iOS 13 has a new way of sending app lifecycle events. Instead of coming through the UIApplicationDelegate they come through the UIWindowSceneDelegate which is a UISceneDelegate sub-protocol. UISceneDelegate has the important delegate methods. This change is to support multiple windows in iOS 13. There’s more information in WWDC 2019 session 212 “Introducing Multiple Windows on … Read more

How to change the status bar background color and text color on iOS 13?

You can add some conditions or use first one. Just create some extension for UIApplication. extension UIApplication { var statusBarUIView: UIView? { if #available(iOS 13.0, *) { let tag = 38482 let keyWindow = UIApplication.shared.windows.filter {$0.isKeyWindow}.first if let statusBar = keyWindow?.viewWithTag(tag) { return statusBar } else { guard let statusBarFrame = keyWindow?.windowScene?.statusBarManager?.statusBarFrame else { return … Read more

SwiftUI – Half modal?

In Swift 5.5 iOS 15+ and Mac Catalyst 15+ there is a There is a new solution with adaptiveSheetPresentationController https://developer.apple.com/documentation/uikit/uipopoverpresentationcontroller/3810055-adaptivesheetpresentationcontrol?changes=__4 @available(iOS 15.0, *) struct CustomSheetParentView: View { @State private var isPresented = false var body: some View { VStack{ Button(“present sheet”, action: { isPresented.toggle() }).adaptiveSheet(isPresented: $isPresented, detents: [.medium()], smallestUndimmedDetentIdentifier: .large){ Rectangle() .frame(maxWidth: .infinity, maxHeight: .infinity, … Read more

In iOS13 the status bar background colour is different from the navigation bar in large text mode

No hacks or funkiness required here. The key is defining the desired appearance and setting this value on BOTH the nav bar’s standardAppearance AND its scrollEdgeAppearance. I have the following in the init for my base navigation controller subclass for my entire app: if #available(iOS 13.0, *) { let navBarAppearance = UINavigationBarAppearance() navBarAppearance.configureWithOpaqueBackground() navBarAppearance.titleTextAttributes = … Read more

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