Extract Subview option missing in Xcode 26

Hi everyone, I recently updated to Xcode 26.0 and noticed that the “Extract Subview” refactoring option seems to be missing.

Now, in Xcode 26, the only options I see under Editor -> Refactor -> are: Extract to Selection File Extract to Method Extract to Variable Extract All Occurrences But there’s no Extract Subview as there was before.

Was Extract Subview intentionally removed in Xcode 26? Or is it hidden behind a new menu location or renamed?

I'm having the same issue.

I am having the same issue. The entire context (Action) menu has disappeared. Certainly this isn't a major oversight.

+1 on this issue.

Yes and they haven't updated their Tutorial for "Develop in Swift" with the fact that they've taken it away.

(See section 3, step 1 in this link)

Same Issue, there is no way to extract views anymore.

Hi Anna_Ciobu,

Double check your Preview struct method. You can always use the default if the ContentView is too complicated. Make sure the method is outside of your code scope; at the very bottom of your code and reads (generally):

struct ContentView: some View {
       var body: some View {
                 // body of your code that does something and is defined in the body{}...
    }
}
#Preview { 
        ContentView()
}

Also make sure that your device simulator is set (din't press the build/play button :

Happy frustration free coding :)

--CC

Extract Subview option missing in Xcode 26
 
 
Q