Skip to content

stupidfive/AutoLayoutCodeGenerator

Repository files navigation

AutoLayout Code Generator

What does it do?

Give'em a storyboard(xib), returns you the auto-layout code(in Swift).

Usage

  1. Setup your storyboard by adding auto-layout.
  2. Customize your view names in the document outline.
  3. Create views in your own project with corresponding name from the previous step, set them up, and add them to the view by yourself.
  4. Edit the path variable in the code of this project to be the path of you target storyboard. You can do this by dragging your storyboard into the code.
  5. Build & run this project.
  6. Copy code from Xcode console, paste them in your own project.
  7. Build & run your own project.

Direction

  • Fix possible bugs(since its not well tested), optimize the code etc.
  • make it available for Objective-C and possibly Masonry.

About

A Code Generator for AutoLayout Constraints in iOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages