ios13

Back button not being called in TabbarCoordinator in horizontal flow iOS 12

血红的双手。 提交于 2020-01-16 10:11:48
问题 Coordinator pattern is an old topic with many libraries trying to solve it and I am learning it in simple example app. My current set up is 3 rootViewControlers: LoadingStateCoordinator , WelcomeCoordinator , TabBarCoordinator but missing connection between UIKit and coordinators. I am trying to implement it with a UINavigationController but the button is not being called. I need a way to connect to back button and a reusable coordinator that I could push to and dellocate accordingly (that is

iOS 13 Setting status bar text color from within UINavigationController

旧时模样 提交于 2020-01-16 09:11:07
问题 So before iOS 13, I was setting the NavigationController.NavigationBar.BarStyle to control the colour of the text int he status bar. But now witht he new UINavigationBarAppearance, is there anyway to control that? I've already tried overriding preferedStatusBarStyle, and ensured my plist contains the setting as well but as far as I can tell this isn't honored if your view controller sits inside a UINavigationController. So now for iOS 13 I'm setting my navigation bar's appearance using the

Input a dynamic value into @FetchRequest, to fetch a single entity from core data in SwiftUI

自作多情 提交于 2020-01-15 10:14:46
问题 I saw same type of error but with different kind of code here, so I think it's better to ask a new question on this context. I have attempted to "find a specific entity" from core data by trying to pass a string variable (which use as a key to find that entity) called title into @FetchRequest . This is part of the code I have used struct AccountMainPage: View { //*** User input *** var title: String //*** Core data enviroment initialisation *** @Environment(\.presentationMode) var

How to set the ios13 UISegmentedControl backgroundColor to white?

白昼怎懂夜的黑 提交于 2020-01-14 10:43:36
问题 I am trying to set the background color of a segmentedControl in iOS 13 for the normal state. I have the same issue as listed here: How to set backgroundColor of UISegmentedControl to white in iOS 13 The answer to the question in the link above is not helpful. I would like to maintain the ios13 slide animation behavior but also have the normal state segments to be white not a light gray. There seems to be a default image in the segmentedControl that is causing the gray/offWhite coloring

UITableView: selected cell color is not rendered in ios13

♀尐吖头ヾ 提交于 2020-01-14 10:11:09
问题 I'm using Xcode 11 beta 6, on selecting the UITableViewcell ,cell has not been highlighted.It has a white background instead of showing selected background color. 回答1: Per iOS 13 release notes (https://developer.apple.com/documentation/ios_ipados_release_notes/ios_ipados_13_beta_8_release_notes) - The UITableViewCell class no longer changes the backgroundColor or isOpaque properties of the contentView and any of its subviews when cells become highlighted or selected. The UITableViewCell class

UICloudSharingController shows infinite activity indicatory in Xcode 11

一个人想着一个人 提交于 2020-01-14 09:32:12
问题 I have the following code to import the UICloudSharingController into swift UI but when integrated the first time up it just shows an activity indicator that never stops and then the second time it is presented (via .sheet), there is no activity indicator. The first time up I can see the close button to the top right corder with activity indicator. Any feedback would be appreciated. struct CloudSharingController: UIViewControllerRepresentable { typealias UIViewControllerType =

Error: Missing return in a closure expected to return 'UIViewController' (Xcode, Swift, iOS 13)

本秂侑毒 提交于 2020-01-14 07:01:11
问题 I'm getting the error: "Missing return in a closure expected to return 'UIViewController'" on the bolded line. How can I fix this? Thank you!! Var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() let hasSession = UserDefaults.standard.value(forKey: "UserHasSubmittedPassword") as? Bool let vc: UIViewController = { if let hasSession = hasSession, hasSession ==

iOS 13 TLS issue

独自空忆成欢 提交于 2020-01-12 05:01:04
问题 I have installed iOS 13 beta version and run my framework which contains a lot of network requests, but I got this error: 2019-09-19 15:01:33.566811+0200 ---[395:25439] Connection 4: default TLS Trust evaluation failed(-9814) 2019-09-19 15:01:33.567022+0200 ---[395:25439] Connection 4: TLS Trust encountered error 3:-9814 2019-09-19 15:01:33.567110+0200 ---[395:25439] Connection 4: encountered error(3:-9814) 2019-09-19 15:01:33.569824+0200 ---[395:25439] Connection 4: unable to determine

didFinishPickingMediaWithInfo returns different URL in iOS 13

浪子不回头ぞ 提交于 2020-01-12 02:30:49
问题 - (void)videoPickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey,id> *)info returns different URLs in iOS 13 and the other iOSs. Any idea why this might be happening? iOS 13: file:///private/var/mobile/Containers/Data/PluginKitPlugin/0849234B-837C-43ED-BEDD-DE4F79E7CE96/tmp/trim.B8AB021D-F4B6-4E50-A93C-8B7F7FB40A1C.MOV < iOS 13: file:///private/var/mobile/Containers/Data/Application/5AE52A95-6A2F-49A5-8210-D70E022E9A05

How to programmatically hide and show status bar in iOS 13?

做~自己de王妃 提交于 2020-01-11 13:23:30
问题 I have made following common method for hiding and showing again status bar. It works fine before iOS 13, but I am getting following crash while I run it for device having iOS 13 or greater. +(void)showStatusBar:(BOOL)show { UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"]; if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) { [[UIApplication sharedApplication] setStatusBarHidden:!show withAnimation