ios13

Is it possible to use swipe to dismiss while presenting a fullscreen modal in iOS 13?

99封情书 提交于 2020-12-12 12:11:26
问题 With the new default card modal presentation in iOS 13, there is a nice feature that is swipe to dismiss. Is it possible to use this feature while presenting a classic .fullscreen modal? I checked and if isModalInPresentation is false while presenting in fullscreen. Any ideas? 回答1: It seems that the swipe to dismiss will only work if the modal is presented as a sheet, as stated in this year's wwdc: Now, what do you all have to do to support Pull to Dismiss? In general, nothing. If you present

Is it possible to use swipe to dismiss while presenting a fullscreen modal in iOS 13?

时光怂恿深爱的人放手 提交于 2020-12-12 12:09:20
问题 With the new default card modal presentation in iOS 13, there is a nice feature that is swipe to dismiss. Is it possible to use this feature while presenting a classic .fullscreen modal? I checked and if isModalInPresentation is false while presenting in fullscreen. Any ideas? 回答1: It seems that the swipe to dismiss will only work if the modal is presented as a sheet, as stated in this year's wwdc: Now, what do you all have to do to support Pull to Dismiss? In general, nothing. If you present

How to use iOS 13.2.3 with Xcode 10.3 (dyld_shared_cache_extract_dylibs failed)

风格不统一 提交于 2020-12-05 17:20:36
问题 There is many answer about dyld_shared_cache_extract_dylibs failure. Notably this link and this other one and this github issue. None of this worked for me. I have the last iOS DeviceSupport installed, and I tried to remove the dyld_shared_cache_arm64e files, add empty dyld_shared_cache_armv6 or dyld_shared_cache_arm64e files without success. Is it a way to use my phone without downgrading to iOS 13.1.2 ? 回答1: I have Xcode 10.2.1 and iPhone 11 (iOS 13.3). For iOS 13.3 Above solution not work

How to use iOS 13.2.3 with Xcode 10.3 (dyld_shared_cache_extract_dylibs failed)

我与影子孤独终老i 提交于 2020-12-05 17:19:10
问题 There is many answer about dyld_shared_cache_extract_dylibs failure. Notably this link and this other one and this github issue. None of this worked for me. I have the last iOS DeviceSupport installed, and I tried to remove the dyld_shared_cache_arm64e files, add empty dyld_shared_cache_armv6 or dyld_shared_cache_arm64e files without success. Is it a way to use my phone without downgrading to iOS 13.1.2 ? 回答1: I have Xcode 10.2.1 and iPhone 11 (iOS 13.3). For iOS 13.3 Above solution not work

iOS 13 status bar hidden for all iPhone types in landscape

陌路散爱 提交于 2020-12-02 18:29:03
问题 Our app has overridden prefersStatusBarHidden in its main view controller to return false for all situations. However, I'm getting different results while testing iOS 13. When using the iOS 13 simulators in Xcode 11 (beta 6), they all hide the status bar (this is consistent with Apple's UIViewController documentation). With the iOS 12 simulators, the X-model iPhones are hiding the status bar in landscape, but the other iPhone types are showing the status bar. (Also to note, the

.sink is not returning the promise values from a Future Publisher

最后都变了- 提交于 2020-11-29 21:29:50
问题 I have this code in lrvViewModel.swift func getVerificationID (phoneNumber: String) -> Future<String?, Error> { return Future<String?, Error> { promise in PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber, uiDelegate: nil) { (verificationID, error) in if let e = error { promise(.failure(e)) return } print("verification worked") self.defaults.set(verificationID, forKey: "authVerificationID") return promise(.success(verificationID)) } } } and then i call and subscribe to the Publisher

.sink is not returning the promise values from a Future Publisher

岁酱吖の 提交于 2020-11-29 21:27:05
问题 I have this code in lrvViewModel.swift func getVerificationID (phoneNumber: String) -> Future<String?, Error> { return Future<String?, Error> { promise in PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber, uiDelegate: nil) { (verificationID, error) in if let e = error { promise(.failure(e)) return } print("verification worked") self.defaults.set(verificationID, forKey: "authVerificationID") return promise(.success(verificationID)) } } } and then i call and subscribe to the Publisher

iOS 13 `withTintColor` not obeying the color I assign

风流意气都作罢 提交于 2020-11-28 07:56:20
问题 I find the behavior of the new iOS 13 UIImage property withTintColor(_:renderingMode:) incomprehensible. What is it for, and how does it relate to the tint color of the context in which the image appears? For example: let im = UIImage(systemName:"circle.fill")?.withTintColor(.red) let iv = UIImageView(image:im) iv.frame.origin = CGPoint(x: 100, y: 400) self.view.addSubview(iv) I said .red . But it's blue: Evidently it's blue because it takes its color from the tint color of the surrounding