Using Cartography, you can set up your Auto Layout constraints in declarative code and without any stringly typing! Call the constrain* function with your UIView or NSView instances as well as a closure in which you declare the constraints between the different attributes of your views. For every view on the left hand side of an equality or inequality operator, Cartography will automatically set its translatesAutoresizingMaskIntoConstraints property to false. If the view is not controlled by you–for example if it belongs to a Apple-provided UIViewController class–you should take appropriate care when declaring its constraints. You can capture multiple constraints in a group to then replace them with new constraints at a later point. Cartography supports all built-in attributes as of iOS 8 and OS X 10.9.

Features

  • Supports convenient compound attributes that allow you to assign multiple attributes at once
  • Set up your Auto Layout constraints in declarative code and without any stringly typing!
  • Integrate Cartography into your Xcode project using CocoaPods
  • You can capture multiple constraints in a group
  • Supports all built-in attributes as of iOS 8 and OS X 10.9
  • Distribute multiple views, either horizontally or vertically

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Cartography

Cartography Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Cartography!

Additional Project Details

Operating Systems

Apple iPhone

Programming Language

Swift

Related Categories

Swift User Interface (UI) Software

Registered

2021-08-03