xcode11

Navigating Text box on a pdf is not working any more after iOS 13 - seems gestures issue using PDFKIT

天涯浪子 提交于 2019-12-18 09:24:34
问题 I implemented a project I used PDFKIT to do some how adding a floating Textbox on a pdf and it can navigate by users touch on screen using GestureRecognizer to move and put where users decide to. it has worked perfectly before iOS 13, but after it, it does not give you the chance to move the text box and I tried many ways to solve it but all failed. It seems that the problem somehow relates to GestureRecognizer but I am not sure, and also I really do not know how to fix it. I was working on

Why is manually setup root view controller showing black screen?

流过昼夜 提交于 2019-12-18 04:22:01
问题 I have manually setup a root view controller for iOS 13 using Xcode 11, Beta 5. Deleted references to main in the deployment info including removing reference to main in info.plist which I never found myself having to do prior to iOS 13. Setup for window is done in SceneDelegate, nested in willConnectTo function. Normally the app would crash if I missed a step. Now I'm getting a blank black screen instead of seeing what my view controller is setup for, say a red background. All of this use to

Why is manually setup root view controller showing black screen?

一曲冷凌霜 提交于 2019-12-18 04:21:49
问题 I have manually setup a root view controller for iOS 13 using Xcode 11, Beta 5. Deleted references to main in the deployment info including removing reference to main in info.plist which I never found myself having to do prior to iOS 13. Setup for window is done in SceneDelegate, nested in willConnectTo function. Normally the app would crash if I missed a step. Now I'm getting a blank black screen instead of seeing what my view controller is setup for, say a red background. All of this use to

SwiftUI - PresentationButton with modal that is full screen

余生长醉 提交于 2019-12-18 02:19:57
问题 I am trying to implement a button that presents another scene with a "Slide from Botton" animation. PresentationButton looked like a good candidate, so I gave it a try: import SwiftUI struct ContentView : View { var body: some View { NavigationView { PresentationButton(destination: Green().frame(width: 1000.0)) { Text("Click") }.navigationBarTitle(Text("Navigation")) } } } #if DEBUG struct ContentView_Previews : PreviewProvider { static var previews: some View { Group { ContentView()

Xcode 11: Canvas does not show up

左心房为你撑大大i 提交于 2019-12-17 16:27:08
问题 I´m trying to get the new Canvas feature from Xcode 11 running, but the Canvas won´t show up. What am I doing wrong? I just created a new default project (single view app), compiled it and activated 'Editor > Editor and Canvas'. I can navigate to each file in the project, nothing shows up. What else does need to be done? 回答1: You need to be on Catalina macOS version (10.15), as stated in official tutorial Be warned: Catalina doesn't support 32-bit applications, some old apps will stop working

Xcode 11 backward compatibility: “UIWindowScene is only available in iOS 13 or newer”

霸气de小男生 提交于 2019-12-17 04:32:19
问题 In Xcode 11, I created a new app project from the Single View App template. I want this app to run in iOS 12 as well as iOS 13. But when I switch the deployment target to iOS 12, I got a lot of error messages like this one: UIWindowScene is only available in iOS 13 or newer What should I do? 回答1: The template in Xcode 11 uses a scene delegate. Scene delegates and the related classes are new in iOS 13; they don't exist in iOS 12 and before, and the launch process is different. To make a

iOS 13 | Xcode 11 | NSData

会有一股神秘感。 提交于 2019-12-13 20:24:52
问题 I am in confusing in iOS 13 with keychain access. CFDataRef passwordData = NULL; OSStatus keychainError = noErr; keychainError = SecItemCopyMatching((__bridge CFDictionaryRef)returnDictionary, (void *)&passwordData); NSString *password = [[NSString alloc] initWithBytes:[(__bridge_transfer NSData *)passwordData bytes] length:[(__bridge NSData *)passwordData length] encoding:NSUTF8StringEncoding]; after execute above code segment, password variable value is {length=32,bytes

SwiftUI with Xcode 11 beta 7 not updating contents of List / ForEach

夙愿已清 提交于 2019-12-13 17:12:52
问题 I've been trying a simple feature to add new entries to a List. The View will just add a new generated. item (no need for user input). struct PeopleList: View { @ObservedObject var people: PersonStore var body: some View { NavigationView { VStack { Section { Button(action: add) { Text("Add") } } Section { List { ForEach(people.people) { person in NavigationLink(destination: PersonDetail(person: person)) { PersonRow(person: person) } } } } } } .navigationBarTitle(Text("People")) .listStyle

SwiftUI show/hide sections

我是研究僧i 提交于 2019-12-13 03:55:05
问题 Im trying to build a nested layers menu, like Sketch or Photoshop. Bellow is what I did so far, using VStack with Sections to Group layers. import SwiftUI struct NestedList: View { var body: some View { ScrollView { VStack { Section (header: HStack { Image(systemName: "arrowtriangle.down") .accentColor(.black) Text("Layer Group 1") }) { HStack { Image(systemName: "arrowtriangle.right") .accentColor(.black) Text("Layer 1") } HStack { Image(systemName: "arrowtriangle.right") .accentColor(.black

Xcode build fails due to Undefined symbol: __swift_FORCE_LOAD_$_swiftUIKit

对着背影说爱祢 提交于 2019-12-13 03:49:45
问题 I created a brand new project in Xcode 11 (an iOS single-view project with SwiftUI) and enable Mac as a target device. Without doing anything else, I try to build, and I get this error: ld: warning: directory not found for option '-L/Applications/Xcode' ld: warning: directory not found for option '-L11.0-Beta.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/uikitformac' ld: warning: directory not found for option '-L/Applications/Xcode' ld: warning: directory not