Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extract Subview not showing up

Tags:

swiftui

I'm building my first SwiftUI app. For some reason when I command+click on an HStack the "Extract Subview" and other options don't show up. Any reason why I'm not seeing these options? I'm using Core Data and UITableView.appearance to remove lines in my List as well. Does it have to do with using core data and my use of UITableView? Couldn't find any answers after researching. Appreciate the help.

enter image description here

like image 791
Kevin Lillybridge Avatar asked May 02 '20 19:05

Kevin Lillybridge


Video Answer


1 Answers

Not sure if this is an Xcode issue/bug but as of Xcode 11.4 the "Extract Subview" option (and others) show up only if the Canvas is being shown.
So, enable live preview and then cmd-click on the View you want to extract.

image

like image 90
staticVoidMan Avatar answered Sep 21 '22 00:09

staticVoidMan