Why Can't I Drag and Drop Objects from the Library to the Canvas in Xcode 15 using SwiftUI?
Asked Answered
D

1

14

The canvas appears to be read-only... I can only drag and drop objects (Views & Modifiers & so on) from the Library onto the code itself. I'm doing a class on udemy where the instructor is literally dragging and dropping objects onto the canvas and it auto-updates the code and the canvas at the same time. She's using an older version of Xcode, however. Why did Apple remove this functionality? Or am I missing a setting somewhere? Even when I drag, say, a button into the code, I can't even drag and move the button around on the canvas, it's just unclickable.

Dyson answered 30/10, 2023 at 1:45 Comment(4)
I think this feature is indeed removed. “Why did Apple remove this functionality?” is not a very useful or clear question. What kind of answers are you looking for?Viyella
Lol, sorry, I just needed to know whether or not they indeed removed the feature. Thanks!Dyson
Frustrating. The current Xcode 15 docs clearly say, "click the Library button (+) in the toolbar to open the library, then drag user interface elements from the library to either the canvas or source code."Crisscross
Been here sitting for two hours trying to figure this out - thanks Apple.Lodmilla
X
8

Yes, Apple confirmed that this feature was removed in Xcode 15.

https://developer.apple.com/forums/thread/746483

Xanthic answered 15/2 at 12:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.