Your First iOS & SwiftUI App: An App from Scratch, Episode 5: SwiftUI Views | Kodeco

Learn how to create user interfaces in SwiftUI by constructing a tree of Views, such as Text, Slider and Button.


This is a companion discussion topic for the original entry at https://www.kodeco.com/37086140-your-first-ios-swiftui-app-an-app-from-scratch/lessons/5

Currently using Xcode 15.0.1

I cannot drag a text field from the library onto the canvas as shown at the 06:13 mark in the video. I do have the preview canvas on select mode. I am able to drop the text field from the library into the code editor.

Doesn’t work for me either.

Currently using Xcode 15.0.1

I cannot drag a text field from the library onto the canvas.

Apple removed the ability to drag views from the library onto the canvas in Xcode 15. However, you can still add views by dragging them from the library directly into the code editor.

2 Likes

It seems odd to me that Apple would do away with such a handy ‘drag and drop’ feature. I wonder what the justification for that change was. I’m sure for other reasons that it made sense to implement the change and later when I am more experienced it’ll be an obvious necessity :slight_smile:

This really should be updated. I had to start searching everywhere to find out what was going on. No idea why they would get rid of such a useful feature

Am a newcomer here. And I also stumbled on the disappearance of that feature in the canvas. I agree that the tutorial should be updated… at least with a note.

For everyone saying that the video should be updated, let’s just say that the most educational part of this video is coming to the forum and checking out why it didn’t work and reading the comments here to see why and how to work around it. These videos are a year old at this point and so many new revisions have gone out, so there is always something new.

Good luck!

1 Like

How do I use the starter files that are on GitHub?