Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.57 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.57 KB

Xamarin.SnapKit is a complete port in C# of SnapKit, a DSL to make Auto Layout easy on both iOS and OSX.

Contents

Requirements

  • iOS 8.0+ / Mac OS X 10.11+ / tvOS 9.0+
  • VisualStudio for MAC or Xamarin for VisualStudio

Communication

  • 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.

Usage

Quick Start

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);
        });
    }

}

Resources

Credits

License

SnapKit is released under the MIT license. See LICENSE for details.