Xcode Views and Modifiers Buttons Missing from Library Panel

Xcode isn’t bad software, it’s the IDE that’s used to develop iOS (and all of apple’s platform) apps and is constantly changing, like all software. So occasionally things will break.

However the solution to your problem is answered by Chris, and is marked as the solution to this original question. You must have one view in your SwiftUI view for the menu to come up properly like Chris’s videos.

Looking at the picture you posted

You have no view inside of your ContentView’s body property. Add something like Text(“Hello”) inside the body property and then click Cmd + Shift + L

kmmarie777 ‘s proposed solution is about the canvas. Which may not be directly related to your question. However she’s referring to the top right hand corner of Xcode. Clicking the icon, shown here and then clicking on Canvas to show the canvas in Xcode

image

@allard

If you read the entire thread I do make the point, in one of my posts, that the current version of Xcode requires “a View” of some sort within the body property for the library to allow you to select other Views to drag in. That’s the way it now works now so you need to take that on board and move on.

With regard to the timestamps that are provided on the posts 99% of the people using this community forum understand that 3d means 3 days ago, 3h means 3 hours ago. Jul 17 means July 17 just gone. For posts that occur in the previous year (2020) they have a date like Dec 2020.

Everyone here who offers help are volunteers apart from the immediate members of the Code With Chris team and we look forward to assisting members of this community with coding queries. If you have a specific coding query then feel free to create a separate post in the appropriate Category.