ios13
NSPersistentCloudKitContainer: How to check if data is synced to CloudKit
To quote “Framework Engineer” from a similar question in the Apple Developer forums: “This is a fallacy”. In a distributed system, you can’t truly know if “sync is complete”, as another device, which could be online or offline at the moment, could have unsynced changes. That said, here are some techniques you can use to … Read more
iOS 13 TLS issue
Apple has defined stricter rules for TLS server certificates, starting from iOS 13 and macOS 10.15. All TLS server certificates must comply with these new security requirements in iOS 13 and macOS 10.15: TLS server certificates and issuing CAs using RSA keys must use key sizes greater than or equal to 2048 bits. Certificates using … Read more
Mac-catalyst – minimum window size for Mac catalyst app
Just add the following chunk of code to your application:didFinishLaunchingWithOptions method (for UIKit projects) or to scene(_:willConnectTo:options:) (for SwiftUI projects): UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }.forEach { windowScene in windowScene.sizeRestrictions?.minimumSize = CGSize(width: 480, height: 640) } PS: you can also set the maximumSize property there PS2: If you set both minimumSize and maximumSize to the … Read more
How to force disable iOS dark mode in React Native
The solution is to either add this to your Info.plist file: <key>UIUserInterfaceStyle</key> <string>Light</string> OR Add this to your AppDelegate.m: if (@available(iOS 13.0, *)) { rootView.overrideUserInterfaceStyle = UIUserInterfaceStyleLight; }