| Info | Value |
| --- | --- |
| Platform | os x |
| Platform Version | 10.11 |
| SnapKit Version | 0.21.0 |
| Integration Method | carthage |
I can't seem to figure out how inset and offset are supposed to be used. It seems like depending on the constraint they act differently. Sorry I don't have exact examples right now, but in general I've had issues like:
My thinking was that inset moved things inside while offset moves things outside. But it seems like for some constraints like top IIRC, I have to use offset to move the view down, rather than inset, and other nonintuitive stuff like that.
Maybe I'm just thinking about them incorrectly? I don't see anything in the docs on how exactly they're meant to be used. Could you elaborate on them, and even better, add the info to the documentation? Thanks!
@einsteinx2 It is a bit confusing. To give you a bit of reference here:
offset is set as the constant value regardless of the attribute.inset is set as the constant value, but sometimes inverted depending on the attribute. For instance right/bottom/width/height will be -(value)If this isn't the case please provide an example with what isn't working this way and I'll get it tidied up.
Most helpful comment
@einsteinx2 It is a bit confusing. To give you a bit of reference here:
offsetis set as the constant value regardless of the attribute.insetis set as the constant value, but sometimes inverted depending on the attribute. For instance right/bottom/width/height will be-(value)If this isn't the case please provide an example with what isn't working this way and I'll get it tidied up.