Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preview on multiple devices option in Xcode

Tags:

xcode

uikit

I was following some tutorials on YouTube. In most tutorials they are using the UIKit (Storyboard) framework. Now watching these videos they can open multiple devices to preview the work at the same time. See the following picture:

enter image description here

I am using Xcode 14 and I was searching for the "Preview" option or feature they are using and I cannot find it at all. I understand that I can choose any device from the bottom and I do not think it is efficient to check each device on solo view. So how to achieve opening or previewing multiple devices like the picture above?

like image 725
editix Avatar asked Oct 17 '25 15:10

editix


2 Answers

Right now, my current Xcode version is 14.3.1. For those who want to see the Preview in the Storyboard Builder:

  1. Click on the Adjust Editor Options

enter image description here

  1. Click on Assistant

enter image description here

  1. You can also find the Assistant option on top of Xcode by clicking on Editor. (Optional)

enter image description here

  1. You will see a new editor added on the right with a new icon like intersecting rings.

enter image description here

  1. Finally, go to Editor -> Preview. Or just type command + option + Enter

enter image description here

  1. That's it! Now you can see the Preview and add several devices.

enter image description here

like image 112
Carlos Leonardo Camilo Vargas Avatar answered Oct 21 '25 00:10

Carlos Leonardo Camilo Vargas


In Xcode 14.2, open Storyboard file viz. Main.storyboard. Click on Editor in Menu bar and select Assistant. This should open associated ViewController.swift file. Click on any line in the file ViewController.swift. Now, you can see the Preview option in the Editor in the Menu bar.

like image 34
Azza Avatar answered Oct 21 '25 00:10

Azza