ios13

iOS13 UIAlertController with custom view & preferredStyle as actionsheet grayscale all colors

天大地大妈咪最大 提交于 2020-05-16 03:39:08
问题 I'm not exactly sure if it's a bug or a feature, but this code: let sheet = UIAlertController(customView: awesomeView, preferredStyle: .actionSheet) .... present(sheet, animated: true, completion: nil) in pre-iOS 13 gives me this result: and on iOS 13: I.e. all the customview's elements have been grayscale. I've tried to play with Tint/Text/Background/... colors of the buttons / label - in iOS 13 is does no effect at all. In older versions - UI is changing. The goal: to avoid the grayscale

Present ViewController on top of everything regardless of the view hierarchy in IOS 13

笑着哭i 提交于 2020-05-14 03:58:43
问题 In iOS 13,there is a new behaviour for modal view controller when being presented. Now it's not fullscreen by default, and when i try to change modalPresentationStyle to .fullScreen my view present and dismiss immediately. I'm presenting view controller with code : if #available(iOS 13.0, *) { var popupWindow: UIWindow? let windowScene = UIApplication.shared .connectedScenes .filter { $0.activationState == .foregroundActive } .first if let windowScene = windowScene as? UIWindowScene {

Present ViewController on top of everything regardless of the view hierarchy in IOS 13

╄→гoц情女王★ 提交于 2020-05-14 03:58:09
问题 In iOS 13,there is a new behaviour for modal view controller when being presented. Now it's not fullscreen by default, and when i try to change modalPresentationStyle to .fullScreen my view present and dismiss immediately. I'm presenting view controller with code : if #available(iOS 13.0, *) { var popupWindow: UIWindow? let windowScene = UIApplication.shared .connectedScenes .filter { $0.activationState == .foregroundActive } .first if let windowScene = windowScene as? UIWindowScene {

Firebase notifications received on iOS 12 but not received on iOS 13

柔情痞子 提交于 2020-05-14 02:21:08
问题 Firebase push notifications sent but not received on iOS 13 and received on iOS 12 My xcode version 11.4 with Swift 5 I did the test on iOS 12.4.2, 13.4 and 13.4.1 The notifications not received in any app state (foreground, background and closed) I added a firebase project for my project and connected with APNS using both ways APNs auth key and APNs Certificates I tried the firebase notification composer and got the same result Here is my AppDelegate class code: import UIKit import

CBPeripheral.ancsAuthorized info is unreliable

烂漫一生 提交于 2020-05-13 14:31:51
问题 Our app works with a paired Bluetooth peripheral that uses ANCS, that is why I dug early into the brand new privacy setting "Share System Notifications" to make our app ready for iOS13... However there is an issue, the CBPeripheral property ancsAuthorized(Bool) is unreliable, so then it is impossible to know if the user granted the authorization or not. It is unreliable in 2 ways: Once connected to the peripheral, asking peripheral.ancsAuthorized returns always false at first, then after some

How to present crossDissolve view in swiftUI?

十年热恋 提交于 2020-05-13 14:09:49
问题 In UIKit I used below code to present a modal Viewcontroller with presentation style crossDissolve controller.modalTransitionStyle = .crossDissolve controller.modalPresentationStyle = .overFullScreen UIApplication.topViewController()?.present(controller, animated: true, completion: nil) But how I can achieve this in swiftUI? 回答1: You can make an extension on UIViewController like this: struct ViewControllerHolder { weak var value: UIViewController? } struct ViewControllerKey: EnvironmentKey {

MDCTextField rightView property broken on iOS 13

岁酱吖の 提交于 2020-05-12 12:42:57
问题 I can't use the rightView property with MDCTextField anymore on iOS 13. Am I the only one having an issue with this? The right view width cover the whole text field: preventing the user interaction and hiding the textView content. No problem when I switch from MDCTextField to UITextField . 回答1: Add width constraint to the rightView / leftView . Don't forget to set translatesAutoresizingMaskIntoConstraints = false rightView.translatesAutoresizingMaskIntoConstraints = false rightView

MDCTextField rightView property broken on iOS 13

我与影子孤独终老i 提交于 2020-05-12 12:42:13
问题 I can't use the rightView property with MDCTextField anymore on iOS 13. Am I the only one having an issue with this? The right view width cover the whole text field: preventing the user interaction and hiding the textView content. No problem when I switch from MDCTextField to UITextField . 回答1: Add width constraint to the rightView / leftView . Don't forget to set translatesAutoresizingMaskIntoConstraints = false rightView.translatesAutoresizingMaskIntoConstraints = false rightView

iOS 13 - How to login in in-app purchase Sandbox account?

匆匆过客 提交于 2020-05-09 20:33:07
问题 In order to test my in-app purchases with iOS 13 I have updates one of my test devices to iOS 13.1 beta. On iOS 12 and before I there was a special Sandbox login in Settings/iTunes & App Store/Sandbox Account : However, after the update to iOS 13 this section is missing. I tried to follow the instruction in the answer to a similar problem on iOS 12 but nothing worked. I completely rest the device and logged out both at Settings/iTunes & App Store and at Settings/Apple ID , so currently the

iOS 13 - How to login in in-app purchase Sandbox account?

拈花ヽ惹草 提交于 2020-05-09 20:33:07
问题 In order to test my in-app purchases with iOS 13 I have updates one of my test devices to iOS 13.1 beta. On iOS 12 and before I there was a special Sandbox login in Settings/iTunes & App Store/Sandbox Account : However, after the update to iOS 13 this section is missing. I tried to follow the instruction in the answer to a similar problem on iOS 12 but nothing worked. I completely rest the device and logged out both at Settings/iTunes & App Store and at Settings/Apple ID , so currently the