xcode is not showing views in storyboard. I have xcode 6 beta 2.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With