Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 6 is not showing views in storyboard

Tags:

ios

swift

xcode6

xcode is not showing views in storyboard. I have xcode 6 beta 2. Note the greyed labels, imageviews and table views

like image 637
Saqib Omer Avatar asked Aug 21 '14 08:08

Saqib Omer


People also ask

How do I add views to my storyboard?

In storyboards, you add views by dragging them onto the view controller scene. For example, the following figure shows a view controller with an image view and button on an iPhone. After adding views to a view controller, always add Auto Layout constraints to set the size and position of those views.

How do I add a view in Xcode?

Xcode creates a new image set for the image. Next, you'll create a new SwiftUI view for your custom image view. Choose File > New > File to open the template selector again. In the User Interface section, select “SwiftUI View” and click Next.

How do I show storyboard in Xcode?

To get this, open the storyboard, click the 'assistant' editor, click the 'assistant editor menu button' (immediately to the right of the > arrow at the top left of the assistant window) and select Preview. This shows how the ViewController will look in landscape/portrait 568/480 high modes.


1 Answers

Figured out the problem. Auto layout and size classes were enabled. I unchecked them in file inspector. And views were visible on storyboard. But this messed up layout. So careful with enabling and disabling auto layout.

like image 149
Saqib Omer Avatar answered Oct 06 '22 02:10

Saqib Omer