ios13

Pushing a UIViewController in iOS 13 Causes it to Overlap Status Bar

不问归期 提交于 2020-08-01 09:09:21
问题 Please note that this project was created in Xcode 10. I recently upgraded to Xcode 11 and this happened. I have a UINavigationController that pushes the View Controllers. The initial view controller looks OK. But when I segue to another view controller by pushing it, the second view controller overlapped the status bar. This only happened in iOS 13. I tested on a simulator. Using Xcode 11. The navigation bar's visibility is hidden. Setting the Presentation to Full Screen or Current Context

Background color on Navigation Bar is not set when my SwiftUI based app is launched in landscape mode

限于喜欢 提交于 2020-07-22 14:12:42
问题 I am working with a SwiftUI based app that relies on a NavigationView to transition from screens. I have a requirement to set the background color on the navigation bar and have found code that makes this work most of the time. When the app is launched in portrait mode, everything works properly across rotations. However, when the app is launched in landscape mode, the bar is the default gray and only updates after the first rotation. Below, I have the minimal amount of code to recreate my

UIMenuController in iOS 13 beta shows with transparent background instead of black background

我与影子孤独终老i 提交于 2020-07-22 06:29:04
问题 I am using UIMenuController to display custom options. It was working fine with a black background and white text on UIMenuItems till iOS 12. After upgrading to iOS 13 beta 8 with Xcode 11 beta 7, the background changed to transparent. Is there anyone else facing this problem? 来源: https://stackoverflow.com/questions/57699513/uimenucontroller-in-ios-13-beta-shows-with-transparent-background-instead-of-bla

RTCMTLVideoView not supported in iPhone 11 series

十年热恋 提交于 2020-07-21 07:09:36
问题 I'm working on Video calls using WebRTC. I've used RTCMTLVideoView to render the remote's video in the app. Except iPhone 11 series devices, all other devices were working fine. #if arch(arm64) // Using metal (arm64 only) remoteRenderer = RTCMTLVideoView(frame: showInView.bounds) #endif I'm checking the issue in iPhone 11 Pro 13.3.1 & iPhone XS 13.2.3 and iPhone 6 12.3. But iPhone 11 alone getting this issue. Do we have any solutions for this Remote Video rendering issue? 回答1: Great to see I

RTCMTLVideoView not supported in iPhone 11 series

对着背影说爱祢 提交于 2020-07-21 07:08:45
问题 I'm working on Video calls using WebRTC. I've used RTCMTLVideoView to render the remote's video in the app. Except iPhone 11 series devices, all other devices were working fine. #if arch(arm64) // Using metal (arm64 only) remoteRenderer = RTCMTLVideoView(frame: showInView.bounds) #endif I'm checking the issue in iPhone 11 Pro 13.3.1 & iPhone XS 13.2.3 and iPhone 6 12.3. But iPhone 11 alone getting this issue. Do we have any solutions for this Remote Video rendering issue? 回答1: Great to see I

Editing PKDrawing in PencilKit

橙三吉。 提交于 2020-07-21 05:23:32
问题 When using PencilKit in iOS 13/iPadOS, how do you change the content in PKDrawing? For example, can I go through all the lines and change the color or width of the lines? Or for selected lines (via lasso)? Or add a straight line in our own code? 回答1: PKDrawing is listed as an Opaque data object. See this Wikipedia Link for an explanation of opaque data object. Unfortunately strokes are not exposed to us. Our only 2 options currently can be found in the docs under Modifying the Drawing.

How to convert Navbar Large title to Multi-line, centre aligned

时光怂恿深爱的人放手 提交于 2020-07-19 04:44:29
问题 I'm trying to design view controller with Multi-lined centred Large title text exactly like Ask Siri by apple ( Settings->General->Keyboards->About Ask Siri, Dictation and Privacy... ). I can able to achieve centred text using: let paragraph = NSMutableParagraphStyle() paragraph.alignment = .center navigationController?.navigationBar.largeTitleTextAttributes = [.paragraphStyle: paragraph] I did set Navigation title from Storyboard and tried these to achieve multi-lined large title: https:/

When I use the apple to log in, the selection box will pop up. I choose to use the password to continue and the prompt is not complete

佐手、 提交于 2020-07-18 10:22:14
问题 iOS13 (beta) Apple Login error @available(iOS 13.0, *) func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) { // Handle error. crprint(error.localizedDescription) } Failed to complete operation. (com.apple.AuthenticationServices.AuthorizationError error 1000.) 回答1: In my case, launching ASAuthorizationController including a request for ASAuthorizationPasswordProvider was causing the error. Failed to complete operation. (com.apple

SwiftUI hide TabBar in subview

六月ゝ 毕业季﹏ 提交于 2020-07-18 04:35:06
问题 I am working with SwiftUI, and I have some issues with the TabBar. I want to hide the TabBar on a specific subview. Have tried with UITabBar.appearance().isHidden = true It only works on the direct views in the TabView. But when I place it in a subview it doesn't work. Have anyone a solution for this? Thanks. 回答1: here's no way to hide TabView so I had to add TabView inside ZStack as this: var body: some View { ZStack { TabView { TabBar1().environmentObject(self.userData) .tabItem { Image

Implementing external monitor support in SwiftUI

霸气de小男生 提交于 2020-07-17 12:07:59
问题 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