FluentLayout / Cirrious.FluentLayout

FluentLayout for Xamarin.iOS - sample uses MvvmCross
Microsoft Public License
148 stars 54 forks source link

Fix to set constraint priority #6

Closed BrianSakhai closed 9 years ago

BrianSakhai commented 9 years ago

FluentLayout class lets you set the constraint priority with SetPriority method, but the priority was not being assigned to the NSLayoutConstraint in ToLayoutConstraints.

alxbog commented 9 years ago

@BrianSakhai Oops. Didn't see your pull request and created the same one. But there is an improvement, your code throws exception if priority is not set. So I set default priority to fix it.

@slodge It would be great if you publish a NuGet package with this fix! Great lib, thanks!

slodge commented 9 years ago

Thanks both

@alxbog very happy to create a nuget package... but no time to do it... happy to do it via pull request... can open up admin on this project if that helps ;)