Xamarin.SnapKit is a complete port in C# of SnapKit, a DSL to make Auto Layout easy on both iOS and OSX.
- iOS 8.0+ / Mac OS X 10.11+ / tvOS 9.0+
- VisualStudio for MAC or Xamarin for VisualStudio
- If you need help, use Stack Overflow. (Tag 'snapkit')
- If you'd like to ask a general question, use Stack Overflow.
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
using SnapKit;
class MyViewController: UIViewController {
private UIView _box = new UIView();
override void viewDidLoad()
{
base.viewDidLoad();
this.View.AddSubview(box);
_box.Snap().MakeConstraints((make) => {
make.Width.Height.EqualTo(50);
make.Center.EqualTo(this.View);
});
}
}
- Jairo Tylera (@jairotylera)
- Robert Payne (@robertjpayne)
- Many other contributors
SnapKit is released under the MIT license. See LICENSE for details.