Skip to content

Tylerian/Xamarin.SnapKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Xamarin port of SnapKit, an autolayout DSL for iOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages