ios13

Window.MakeKeyAndVisible() is not showing new window in iOS 13 and above OS

与世无争的帅哥 提交于 2020-06-01 07:37:05
问题 My requirement is to open new UIWindow instead story board. Used below code to do this, UIWindow window = new UIWindow(UIScreen.MainScreen.Bounds); UIApplication.SharedApplication.KeyWindow.WindowLevel = UIWindowLevel.Normal + 0.1f; window.RootViewController = new MainNavigationController(); window.MakeKeyAndVisible(); It's working fine in iOS below 13 versions, but not in 13 and above. Have noted that iOS 13 and above were new update for multi screen, and have introduced scene delegate, so

SwiftUI iPad app shows black screen on enabling multiple window support

只谈情不闲聊 提交于 2020-05-31 06:36:11
问题 Using SwiftUI on macOS Catalina, when enabling "Support multiple windows", my iPad app shows a black screen on launch in the simulator I'm using the stock SwiftUI project, with the only change being clicking the "Support multiple windows" checkbox This is from my SceneDelegate, which I believe is the proper way to set up a window in SwiftUI var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { let

Setting Up CoreData with SceneDelegate - unknown identifier 'window' error - iOS 13 onwards

微笑、不失礼 提交于 2020-05-29 11:57:57
问题 I was trying to use the official apple documentation for Core Data. Found here. I also ran into a question which was related to my issue, right here on stack. I ran into an issue where, it kept saying that 'window' is not available in the context of AppDelegate. This is the very basic step as per the official documentation. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { if let rootVC = window?

How to get a diffable snapshot from an NSFetchResultsController in iOS 13?

雨燕双飞 提交于 2020-05-26 02:30:38
问题 So here we are in WWDC 2019 video 230, and starting at about minute 14 it is claimed that NSFetchedResultsController now vends an NSDiffableDataSourceSnapshot, so we can just apply it directly to a diffable data source (UITableViewDiffableDataSource). But this is not quite what they say, or what we get. What we get, in the delegate method controller(_:didChangeContentWith:) , is an NSDiffableDataSourceReference. How do we get from this to an actual snapshot, and what should my diffable data

How to get a diffable snapshot from an NSFetchResultsController in iOS 13?

心已入冬 提交于 2020-05-26 02:29:03
问题 So here we are in WWDC 2019 video 230, and starting at about minute 14 it is claimed that NSFetchedResultsController now vends an NSDiffableDataSourceSnapshot, so we can just apply it directly to a diffable data source (UITableViewDiffableDataSource). But this is not quite what they say, or what we get. What we get, in the delegate method controller(_:didChangeContentWith:) , is an NSDiffableDataSourceReference. How do we get from this to an actual snapshot, and what should my diffable data

How to get a diffable snapshot from an NSFetchResultsController in iOS 13?

为君一笑 提交于 2020-05-26 02:28:39
问题 So here we are in WWDC 2019 video 230, and starting at about minute 14 it is claimed that NSFetchedResultsController now vends an NSDiffableDataSourceSnapshot, so we can just apply it directly to a diffable data source (UITableViewDiffableDataSource). But this is not quite what they say, or what we get. What we get, in the delegate method controller(_:didChangeContentWith:) , is an NSDiffableDataSourceReference. How do we get from this to an actual snapshot, and what should my diffable data

Video playback issues only on iOS 13 with AVPlayerViewController and AVPlayer when using HLS video

删除回忆录丶 提交于 2020-05-25 17:01:32
问题 I have an app that plays back videos. It's compatible with iOS 11, 12 and iOS 13. On iOS 11 and 12, video playback works properly as expected using either AVPlayerViewController or even just AVPlayerLayer . However, on iOS 13 I started getting reports that suddenly video wasn't loading (or would only load audio, or only the first frame) for quite a few users when they updated iOS. I had a really hard time replicating it, but some mentioned it occurred mostly with poor network connections, and

Video playback issues only on iOS 13 with AVPlayerViewController and AVPlayer when using HLS video

痞子三分冷 提交于 2020-05-25 16:57:18
问题 I have an app that plays back videos. It's compatible with iOS 11, 12 and iOS 13. On iOS 11 and 12, video playback works properly as expected using either AVPlayerViewController or even just AVPlayerLayer . However, on iOS 13 I started getting reports that suddenly video wasn't loading (or would only load audio, or only the first frame) for quite a few users when they updated iOS. I had a really hard time replicating it, but some mentioned it occurred mostly with poor network connections, and

Swift Combine: subsequent Publisher that consumes other Publishers (using CombineLatest) doesn't “fire”

半城伤御伤魂 提交于 2020-05-25 08:06:27
问题 I am trying to replicate the "Wizard School Signup"-example which was given in the WWDC 2019 session "Combine in Practice" https://developer.apple.com/videos/play/wwdc2019/721/ starting at 22:50 using SwiftUI (as opposed to UIKit, which was used during the session). I have created all the publishers from the example: validatedEMail, validatedPassword and validatedCredentials. While validatedEMail and validatedPassword work just fine, validatedCredentials, which consumes both publishers using

iOS TabBar item title issue in iOS13

冷暖自知 提交于 2020-05-25 05:24:32
问题 I am having issue in tabBar title for iOS13 on compiling from Xcode 11.It works perfect whle compiling from Xcode 10.Please find the screenshot for the issue and below is the code for customising the tabBar. The code is self.tabBar.isTranslucent = true self.tabBar.tintColor = UIColor.white UITabBarItem.appearance().badgeColor = Constant.Colors.colorFF1744 if #available(iOS 13, *) { let appearance = UITabBarAppearance.init() appearance.stackedLayoutAppearance.normal.titleTextAttributes =