Questions tagged [xcode11]

This tag should only be used for questions specific to the usage and features of Xcode 11. Do not use this tag just because you are using Xcode to develop your app. General Xcode questions should use the non-version specific xcode tag. Use tags appropriate for the OS such as ios or macos.

Xcode 11 is year 2019 version of Apple's IDE. Made available in beta at the start of WWDC 2019 on June 3, 2019. This provides support for iOS 13, macOS 10.15, watchOS 6, and tvOS 13.

Xcode 11 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11 requires a Mac running macOS 10.14.3 or later.

1314 questions
0
votes
2 answers

Swift 5: identify all different substrings in string

I have the following string: var strOfCharToSort = "azcdczbdxaaczdbbaazdz" but I'm trying to get the count of the different substrings for example: let countofA = strOfCharToSort.filter { $0 == "a" }.count and it works but I don't know what…
user2924482
  • 8,380
  • 23
  • 89
  • 173
0
votes
1 answer

iOS13 App settings properties no more editable

I am testing an app in iOS 13 using Xcode11. I have some settings properties defined in the .plist file that should be editable from the user. Since iOS 13 I see that they are not editable by default no more. How could I make them editable?
chiappins
  • 202
  • 3
  • 16
0
votes
0 answers

Unresolved Error in AppDelegate about the mainView (xcode11)

I'm trying to build my own time management app and got following error in my AppDelegate.swift. I already tried to find spelling mistakes or other errors in my code, but was not successful. Should be a basic Use of unresolved Identifier error but…
0
votes
2 answers

Syntax for UIAction on Xcode 11 beta 3

Xcode 11 beta 3 does not accept this code to instantiate UIAction anymore: let action = UIAction(__title: "title", image: someImage, options: []) { _ in // some action } There's nothing in the documentation either. I've found a post on Apple…
Marcos Tanaka
  • 3,112
  • 3
  • 25
  • 41
0
votes
1 answer

Can we change root view controller as a Storybord After creating a project in SwiftUI?

I had try following Replace following code in SceneDelegate let window = UIWindow(frame: UIScreen.main.bounds) window.rootViewController = UIHostingController(rootView: ContentView()) self.window = window window.makeKeyAndVisible() instead…
Arjun Patel
  • 1,394
  • 14
  • 23
0
votes
1 answer

NSDATA description returning nil

NSData description returning nil and making the NSData object nil. My code has stopped working and I would like to get this working again. If I compile my code in Xcode 10 it will get the NSData description fine. But if I use Xcode 11 it will give…
JC Castano
  • 135
  • 1
  • 6
0
votes
1 answer

SwiftUI - switch toolbar states

Goal: a toolbar that switches states, according to object selected (image, text, shape) What I did: iimport SwiftUI struct ToolbarMaster : View { @State var showtoolbar = false var toolbarmaster: [ToolbarBezier] = [] var body: some…
Mane Manero
  • 3,086
  • 5
  • 25
  • 47
0
votes
2 answers

Always presenting presenting modally

No matter what I do, the segue kind is always present modally (one vc on top an other). This is even when it is not set to it. At the moment my segue is set to "Show" but even still, the bar at the top of the view controller is still there and when…
0
votes
1 answer

Streamlining working on project spread across multiple packages in Xcode 11

I have my codebase spread across several swift packages for the sake of modularity and faster compile times. While Xcode 11 beta now has official support for packages, managing personal code distributed among several packages seems to be as…
pseudosudo
  • 6,270
  • 9
  • 40
  • 53
0
votes
0 answers

How to give 64-bit iOS Framework Support for 32-bit Mac App [Project Catalyst - Xcode 11 Beta 2]

As Apple said, "Bring iPad Apps to Mac", so I have an app which is perfectly running fine iPhone & iPad. I tried building for Mac and it gives me error for "ObjC linker for Classes" and which is obvious because iOS doesn't support "32-bit…
Sohil R. Memon
  • 9,404
  • 1
  • 31
  • 57
0
votes
2 answers

Xcode 11 Beta and Carthage bootstrap

I'm trying to compile my project with Xcode 11. If I build the project I get this message: Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 I tried to rebuild dependencies running carthage bootstrap but I'm getting another error…
MatterGoal
  • 16,038
  • 19
  • 109
  • 186
0
votes
1 answer

SwiftUI Form struct not recognized by Xcode 11

In one of the WWDC talks, the devs used a struct called Form (I can't remember which talk but if someone knows and comments the talk number, that would be nice). The link to Form in the Apple Documentation is here, but when I tried to use one in a…
RPatel99
  • 7,448
  • 2
  • 37
  • 45
0
votes
3 answers

TabbedView using SwiftUI in Xcode11Beta (11M336w)

I am following along with the session from WWDC2019 here : https://developer.apple.com/videos/play/wwdc2019/216/ I have the following code working for creating a TabbedView using SwiftUI : //Section1 | ContentView…
Arunabh Das
  • 13,212
  • 21
  • 86
  • 109
0
votes
4 answers

Cell row autosizing broken when add Rectangle() in SwiftUI

I'm having trouble positioning a simple Rectangle() in a horizontal stack. If I add it, the Text() stops resizing like this: If I remove the Rectangle(), woks fine: I tried changing frame, relativeSize, layoutPriority and much more, but nothing…
mhergon
  • 1,688
  • 1
  • 18
  • 39
-1
votes
1 answer

How to Save deleted rows after closing application from background?

I'm trying to create A TODO List app .. I'm saving user inputs in UserDefaults and its working while I'm closing the app from home button. but when I remove the app from the background apps all what I deleted previously come back again here's some…