Jonas Budelmann 11 жил өмнө
parent
commit
401d86c116
3 өөрчлөгдсөн 24 нэмэгдсэн , 3 устгасан
  1. 21 0
      CHANGELOG.md
  2. 2 2
      Masonry.podspec
  3. 1 1
      README.md

+ 21 - 0
CHANGELOG.md

@@ -1,3 +1,24 @@
+v0.4.0
+=======
+
+* Fixed Xcode auto-complete support ([nickynick](https://github.com/nickynick))
+
+***Breaking Changes***
+
+If you are holding onto any instances of masonry constraints ie
+```obj-c
+// in public/private interface
+@property (nonatomic, strong) id<MASConstraint> topConstraint;
+```
+
+You will need to change this to
+```obj-c
+// in public/private interface
+@property (nonatomic, strong) MASConstraint *topConstraint;
+```
+
+Instead of using protocols Masonry now uses an abstract base class for constraints in order to get Xcode auto-complete support see http://stackoverflow.com/questions/14534223/
+
 v0.3.2
 =======
 

+ 2 - 2
Masonry.podspec

@@ -1,12 +1,12 @@
 Pod::Spec.new do |s|
   s.name     = 'Masonry'
-  s.version  = '0.3.2'
+  s.version  = '0.4.0'
   s.license  = 'MIT'
   s.summary  = 'Harness the power of Auto Layout NSLayoutConstraints with a simplified, chainable and expressive syntax.'
   s.homepage = 'https://github.com/cloudkite/Masonry'
   s.author   = { 'Jonas Budelmann' => 'jonas.budelmann@gmail.com' }
 
-  s.source   = { :git => 'https://github.com/cloudkite/Masonry.git', :tag => 'v0.3.2' }
+  s.source   = { :git => 'https://github.com/cloudkite/Masonry.git', :tag => 'v0.4.0' }
 
   s.description = %{
     Masonry is a light-weight layout framework which wraps AutoLayout with a nicer syntax.

+ 1 - 1
README.md

@@ -213,7 +213,7 @@ You could also reference multiple constraints by storing them away in an array.
 
 ```obj-c
 // in public/private interface
-@property (nonatomic, strong) id<MASConstraint> topConstraint;
+@property (nonatomic, strong) MASConstraint *topConstraint;
 
 ...