I am using masonry to programmatically setup constraints on views. Several times I have wanted to offset a constraint by a characteristic of another view. Is that possible?
For example, I'd like to do this:
[self.someView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.equalTo(self.mas_centerX).offset(self.otherView.mas_width);
}];
which of course doesn't compile because offset
expects a number and not a constraint.