Is Storyboard Really this Bad

I have a simple template app showing videos, which works just fine. I decided to try doing a tvOS app with Swift and XCode 71 b3. I am fairly new to both Swift and Autolayout. However, either I must be a total moron, or the storyboard screen layout system is one sick puppy. Nothing works right. Well, occasionally something will work. But for the most part, I spend most of my time quiting and relaunchng XCode to get anything to display right. Parameter changes don't take effect, Buttons often don't show their text, Stack views don't respond to changes, and nothing ends up in the right place. Is it really this non-functional, or do I need more introspection?

I'm finally having a little bit of luck with StackViews. However, I seem to have little or no control over textField font size, and textViews don't draw at all in the Simulator. (Haven't tried it on the hardware.)

Ditto. I'm seeing buttons show up in left field, or with incorrect labels. Weird stuff. Not sure how much I want to fight this.

>Parameter changes don't take effect


In that case, use the Product Menu with the option key pressed, then select 'clean build folder'.


Xcode loves to hold onto/work with cached values, etc. An option clean is the best way to clear it's head. Also, delete the old app off the sim/device before building again.


And yes, auto layout can be tricky 😮

Tnx. Yes, autolayout can be a bear. Supposedly, using stackViews, you avoid much of that.


Now, is there anyway to make a textView draw? I'm currently just leaving the default text in the view. I haven't written any code for this yet -- just trying to get a few screens up and linked to test display/layouts.

There have been some good tips on textView/tvOS from apple staffers here recently, but forum search is as tricky as auto layout, so....

It appears that the problem was primarily me and my limited knowledge of autolayout constraints. Things are working better now, especially since I realized I had to nail down the size of the TextView so it didn't get squeezed out.

Yes, beta 3 storyboard becomes unusable after a while. Restart Xcode to restore function. I've gone back to beta 2 to design screens. I've filed a bug.

Ah, good info, thanks.

If you don't understand how constraints work with autolayout, you will be lost when placing objects in a storyboard. Most issues, with objects not showing up in the view, or appearing in the wrong positions, etc. are due to a lack of constraints, or improperly set constraints.

For me, beta three is a great improvement so far, it's maybe 10x more responsive.

Is Storyboard Really this Bad
 
 
Q