Cartography icon indicating copy to clipboard operation
Cartography copied to clipboard

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:

Results 68 Cartography issues
Sort by recently updated
recently updated
newest added

Cartography works for me, but recently I've been getting a lot of weird errors in the console, when I use it. **Example** I have this in my `layoutSubviews()` ``` super.layoutSubviews()...

It would make dynamic layouts easier if it were possible to pass optional views to constrain(). That way, more layout could be done inside of the same closure, and could...

To make debugging simpler, we could set the `NSLayoutConstraint.identifier`, maybe we can even include a reference to its layout block (filename and line).

enhancement
help wanted

Hi. Why I get trap error in XCode on lines: ``` constrain(swipeableView, view) { view1, view2 in view1.left == view2.left+50 view1.right == view2.right-50 view1.top == view2.top + 120 view1.bottom ==...

I haven't found any information about this. I tried to add source folder but it gives compilation error about `CGFloat` in `Coefficients.swift` file. I don't use tools like CocoaPods and...

I'm not entirely sure when this happened (my guess would be with https://github.com/robb/Cartography/commit/0cdd37e2a7534f07a41730188e2ab2c0380a49b2) but the following animation code no longer works (the image shows up in the post-animation position immediately)....

I'd like to offset an item within a table view cell a distance equal to the cell height. Like this: ``` swift constrain(timestampLabel) { timestampLabel in timestampLabel.left == timestampLabel.superview!.left +...

steps to integrate cartography in to another Xcode project

Is it possible to do something similar to the following to align a whole array? If not would it possibly be a good addition? ``` Swift layout([view1, view2, view3, view4,...

As per @smileyborg in #144: > BTW, on the note of significant breaking changes like this, I'd love to also explore what Cartography would look like if it didn't use...

help wanted
question