Masonry third-party libraries in Swift--snapkit

Source: Internet
Author: User

During OC development I used a third-party AutoLayout library called Masonry, and after turning to Swift found that although Swift can be mixed OC, but always feel a bit of trouble, found on GitHub, this is called Snapkit third-party library, found to use more convenient, Share with you

1. Download Snapkit on GitHub, choose iOS target Compilation (command+b), find Snapkit.framework

2. Right button "Show in Finder"

3. Drag this file into our project

4, two places to set up

5, then we can shameless not the same in swift convenient use of this kind of masonry third-party library!

Isn't it convenient?

Tips:

The downloaded Snapkit has a codesnippets folder that copies the contents of the

~/library/developer/xcode/userdata/codesnippets

That can be quickly constructed Snapkit AutoLayout structural template, improve the development efficiency!

REF:

http://snapkit.io/docs/

Http://mobile.51cto.com/hot-431722.htm

Http://www.cocoachina.com/industry/20130604/6336.html

Masonry third-party libraries in Swift--snapkit

Masonry third-party libraries in Swift--snapkit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.