ios13

Implementing external monitor support in SwiftUI

左心房为你撑大大i 提交于 2020-07-17 12:06:32
问题 I'm confused about implementing external monitor support via Airplay with SwiftUI. In SceneDelegate.swift I'm using UIScreen.didConnectNotification observer and it actually detects a new screen being attached but I'm unable to assign a custom UIScene to the screen. I found a few good examples using Swift with iOS12 and lower, but none of them work in SwiftUI, since the whole paradigm has been changed to use UIScene instead of UIScreen. Here's the list: https://www.bignerdranch.com/blog/adding

Google Sign in fails on iOS 13 GM

人盡茶涼 提交于 2020-07-17 09:53:48
问题 My app has a Sign in with Google button. When I try to sign in on iOS 13.0 GM GIDSignInDelegate didSignInForUser:WithError: returns this error: Error Domain=com.google.GIDSignIn Code=-1 "The operation couldn’t be completed. (org.openid.appauth.general error -3.)" I have no clue how to fix this issue. I'm using Google Sign In 5.0.0 as part of Firebase 6.8.1. 回答1: I figured it out! The AppAuth-iOS , which is a open-source dependency of GoogleSignIn SDK, has been updated from 1.1.0 to 1.2.0 in

Google Sign in fails on iOS 13 GM

北城余情 提交于 2020-07-17 09:52:21
问题 My app has a Sign in with Google button. When I try to sign in on iOS 13.0 GM GIDSignInDelegate didSignInForUser:WithError: returns this error: Error Domain=com.google.GIDSignIn Code=-1 "The operation couldn’t be completed. (org.openid.appauth.general error -3.)" I have no clue how to fix this issue. I'm using Google Sign In 5.0.0 as part of Firebase 6.8.1. 回答1: I figured it out! The AppAuth-iOS , which is a open-source dependency of GoogleSignIn SDK, has been updated from 1.1.0 to 1.2.0 in

iOS 13 UIActivityViewController automatically present previous VC after image saving

落爺英雄遲暮 提交于 2020-07-17 03:22:20
问题 I'm trying to implement “Save image to Library” function and then return back to the current view controller, but on a new iOS 13 it dismisses back to the view controller that presented the current one: PHPhotoLibrary.requestAuthorization({(_ status: PHAuthorizationStatus) -> Void in }) let shareItems: Array = [newImg,"Hello"] as [Any] let activityController = UIActivityViewController(activityItems: shareItems, applicationActivities: nil) if UIDevice.current.userInterfaceIdiom == .pad {

SwiftUI: How to present new views on clicking ActionSheet button?

两盒软妹~` 提交于 2020-07-09 06:50:26
问题 I have an action sheet consist of three actions Action_1 Action_2 Cancel If I tap on 'Action_1', My app should present ActionView_1(). If I tap on 'Action_2', My app should present ActionView_2(). I got this for presenting a view .sheet(isPresented: $isAddSecretVisible){ActionView_1()} . But this for presenting a view with a Button click. I need the same action if tap on the Actionsheet button. Answer needs in SwiftUI Thanks in advance. 回答1: You should define 2 State , each for each a sheet:

Is it possible to source an up-to-date snapshot from an NSFetchedResultsController

喜夏-厌秋 提交于 2020-07-07 05:59:25
问题 As of iOS 13, the easiest way to keep a UITableView in sync with a NSFetchedResultsController seems to be with snapshots. The NSFetchedResultsController vends a snapshot reference to its delegate whenever the managedObjectContext reports additions, deletions, or updates. When using snapshots ( NSDiffableDataSourceSnapshot ), there is only one FRC delegate method that needs to be implemented: controller(_:didChangeContentWith:) . In order to make that delegate method work, the

CoreData crash error Xcode 11 Beta, IOS 13 Beta

半城伤御伤魂 提交于 2020-07-04 10:11:22
问题 Im trying building my application from Xcode11 beta on phone IOS 13 Beta. I have crash when application loading. 2019-07-22 13:58:12.910460+0300 GoodWine[3738:792501] [error] fault: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will

Unable to swipe to delete with tableview using diffable data source in iOS 13

旧时模样 提交于 2020-07-02 11:49:08
问题 I'm updating a UITableViewController to use the new UITableViewDiffableDataSource , I have everything working except Swipe to delete. This is an example of how I use swipe to delete func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { let lockedAction = UIContextualAction(style: .normal, title: "TEST") { (_, _, completion) in print("tapped....") completion(true) } return UISwipeActionsConfiguration(actions:

IOS 13 Ruble currency symbol missing. Shows empty square instead

偶尔善良 提交于 2020-06-29 04:31:21
问题 After a recent IOS 13 update a Ruble currency symbol disappeared from all my WordPress sites that use woocommerce when browsing from Iphones. It just shows an empty rectangle. I tried to fix that with adding a custom symbol through functions.php but with no luck so far. Is there a way to fix that? Thank you for your answers! EDIT Well i ve just found a solution. The issue is that this Ruble symbol is in the latin extended set of google fonts. When i changed my standard body fonts from

Navigation Bar's content partially not visible in modal on iOS 13

两盒软妹~` 提交于 2020-06-27 20:15:42
问题 A storyboard based application is having issue rendering the navigation bar's content when the navigation bar is displayed in a modal screen, but only when on a physical device. The code behaves properly in iOS 12 and in all simulators both iOS 12 and iOS 13.2.2. On the left of the screenshot is a iPhone 11 simulator running iOS 13.2.2; on the right is a Reflector projection of my iPhone Xs running iOS 13.2.2 of the same code. We can see there's a space between the tableview and the