|
|
v0.5.0
|
|
|
======
|
|
|
|
|
|
* Fixed bug in `mas_updateConstraints` ([Rolken](https://github.com/Rolken))
|
|
|
#### Fixed bug in `mas_updateConstraints` ([Rolken](https://github.com/Rolken))
|
|
|
|
|
|
Was not checking that the constraint relation was equivalent
|
|
|
https://github.com/cloudkite/Masonry/pull/65
|
|
|
|
|
|
* Added `mas_remakeConstraints` ([nickynick](https://github.com/nickynick))
|
|
|
#### Added `mas_remakeConstraints` ([nickynick](https://github.com/nickynick))
|
|
|
|
|
|
Similar `mas_updateConstraints` however instead of trying to update existing constraints it Removes all constraints previously defined and installed for the view, allowing you to provide replacements without hassle.
|
|
|
|
|
|
https://github.com/cloudkite/Masonry/pull/63
|
|
|
|
|
|
* Added Autoboxing for scalar/struct attribute values ([nickynick](https://github.com/nickynick))
|
|
|
#### Added Autoboxing for scalar/struct attribute values ([nickynick](https://github.com/nickynick))
|
|
|
|
|
|
Autoboxing allows you to write equality relations and offsets by passing primitive values and structs
|
|
|
```obj-c
|
...
|
...
|
@@ -27,7 +27,7 @@ If you want the unprefixed version you need to add `MAS_SHORTHAND_GLOBALS` befor |
|
|
|
|
|
https://github.com/cloudkite/Masonry/pull/62
|
|
|
|
|
|
* Added ability to chain view attributes
|
|
|
#### Added ability to chain view attributes
|
|
|
|
|
|
Composites are great for defining multiple attributes at once. The following example makes top, left, bottom, right equal to `superview`.
|
|
|
|
...
|
...
|
@@ -55,7 +55,7 @@ https://github.com/cloudkite/Masonry/pull/56 |
|
|
v0.4.0
|
|
|
=======
|
|
|
|
|
|
* Fixed Xcode auto-complete support ([nickynick](https://github.com/nickynick))
|
|
|
#### Fixed Xcode auto-complete support ([nickynick](https://github.com/nickynick))
|
|
|
|
|
|
***Breaking Changes***
|
|
|
|
...
|
...
|
@@ -76,13 +76,13 @@ Instead of using protocols Masonry now uses an abstract base class for constrain |
|
|
v0.3.2
|
|
|
=======
|
|
|
|
|
|
* Add support for Mac OSX animator proxy ([pfandrade](https://github.com/pfandrade))
|
|
|
#### Add support for Mac OSX animator proxy ([pfandrade](https://github.com/pfandrade))
|
|
|
|
|
|
```objective-c
|
|
|
self.leftConstraint.animator.offset(20);
|
|
|
```
|
|
|
|
|
|
* Add setter methods for NSLayoutConstraint constant proxies like `offset`, `centerOffset`, `insets`, `sizeOffset`.
|
|
|
#### Add setter methods for NSLayoutConstraint constant proxies like `offset`, `centerOffset`, `insets`, `sizeOffset`.
|
|
|
now you can update these values using more natural syntax
|
|
|
|
|
|
```objective-c
|
...
|
...
|
@@ -99,7 +99,7 @@ self.edgesConstraint.insets = UIEdgeInsetsMake(20, 10, 15, 5); |
|
|
v0.3.1
|
|
|
=======
|
|
|
|
|
|
* Add the same set of constraints to multiple views in an array ([danielrhammond](https://github.com/danielrhammond))
|
|
|
#### Add the same set of constraints to multiple views in an array ([danielrhammond](https://github.com/danielrhammond))
|
|
|
|
|
|
```objective-c
|
|
|
[@[view1, view2, view3] mas_makeConstraints:^(MASConstraintMaker *make) {
|
...
|
...
|
@@ -111,6 +111,7 @@ v0.3.1 |
|
|
v0.3.0
|
|
|
=======
|
|
|
|
|
|
* added `- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *))block` which will update existing constraints if possible, otherwise it will add them. This makes it easier to use Masonry within the `UIView` `- (void)updateConstraints` method which is the recommended place for adding/updating constraints by apple.
|
|
|
* Updated examples for iOS7, added a few new examples.
|
|
|
* Added -isEqual: and -hash to MASViewAttribute [CraigSiemens]. |
|
|
#### added `- (NSArray *)mas_updateConstraints:(void(^)(MASConstraintMaker *))block`
|
|
|
which will update existing constraints if possible, otherwise it will add them. This makes it easier to use Masonry within the `UIView` `- (void)updateConstraints` method which is the recommended place for adding/updating constraints by apple.
|
|
|
#### Updated examples for iOS7, added a few new examples.
|
|
|
#### Added -isEqual: and -hash to MASViewAttribute [CraigSiemens]. |
...
|
...
|
|