-
Notifications
You must be signed in to change notification settings - Fork 0
TZStackView Storyboard Support does not seem to be working #4
Comments
My Xamarin and Xcode are all latest or near latest versions: === Xamarin Studio Enterprise === Version 6.1.5 (build 0)
=== NuGet === Version: 3.4.3.0 === Xamarin.Profiler === Version: 0.38.0 === Apple Developer Tools === Xcode 8.2.1 (11766.1) === Xamarin.Android === Version: 7.0.2.42 (Xamarin Enterprise) SDK Tools Version: 25.2.5 Java SDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home Android Designer EPL code available here: === Xamarin Android Player === Version: 0.6.5 === Xamarin.iOS === Version: 10.3.1.8 (Xamarin Enterprise) === Xamarin.Mac === Version: 2.10.0.120 (Xamarin Enterprise) === Build Information === Release ID: 601050000 === Operating System === Mac OS X 10.11.6 |
Thanks for reporting this. Will have a look at what is going on here. Do you see any error output anywhere? |
No ApplicationOutput window has nothing relevant in it. |
I tried to isolate the "Error while creating this entry" issue, seems to be an issue with enum properties on custom views, the following code results in the same design time error. Wondering if the enum needs to be decorated somehow, although the following article on using enum's doesn't decorate.
|
I did make some progress on this. So I think there are 2 problems:
I analyzed https://github.com/Cheesebaron/TZStackView/blob/master/TZStackView/StackView.cs and think the root cause is that the subviews added via the storyboard to the stackview do not make it ArrangedSubviews. I did a little experiment and modified StackView.cs to reference SubViews instead of ArrangedSubviews and things started to work. Here I'm attaching: This may help get to the bottom of the problem. |
Sorry cant accept arbitrary zip files. Please use a gist instead. |
Think I got to the bottom of this, the issue is that this version of TZStackView is not IB compatible. Note that in the Xcode version there is still a pull request outstanding tomvanzummeren/TZStackView#57 that makes the StackView IB compliant, and I don't think that's been implemented in this version. So I suggest either changing the readme to indicate that this version is not IB compatible, or implemented the PR here. The other enumeration designer issue is believe a Xamarin problem so I'll file a bug with them. |
TZStackView is supposed to support Storyboards (says so in ReadMe), but the vertical StackView is not laying out properly. One thing I noticed is that in the Xamarin design view I get an "Error while creating this entry" screen shot below.
Also I'm attaching my Xamarin project (see Junk.zip), where u'll see that the StackView setup in ViewController.cs is totally ignored:
StackView.Distribution = TZStackView.Distribution.FillEqualy;
StackView.Alignment = TZStackView.Alignment.Fill;
StackView.Spacing = 25;
StackView.Axis = UILayoutConstraintAxis.Vertical;
StackView.TranslatesAutoresizingMaskIntoConstraints = false;
Essentially all I'm trying to do is setup a vertical stackview where the button fill the width of the stackview and space equal vertically with some space, without setting any constraints on the stackview subviews (i.e. the buttons).
junk5.zip
The text was updated successfully, but these errors were encountered: