README.md in motion-kit-0.10.5 vs README.md in motion-kit-0.10.6
- old
+ new
@@ -502,15 +502,22 @@
You can pass symbols like `autoresizing_mask :flexible_width`, or use
symbols that have more intuitive meaning than the usual
`UIViewAutoresizingFlexible*` constants. These work in iOS and OS X.
+All of the `:pin_to_` shorthands have a fixed size, whereas the `:fill_`
+shorthands have flexible size.
+
```ruby
+# the :fill shorthands will get you a ton of mileage
+autoresizing_mask :fill_top
+# but if you want the size to stay constant, use :pin_to
+autoresizing_mask :pin_to_bottom
+# or, a list of flexible sides
autoresizing_mask :flexible_right, :flexible_bottom, :flexible_width
+# or, combine them in some crazy fancy way
autoresizing_mask :pin_to_left, :rigid_top # 'rigid' undoes a 'flexible' setting
-autoresizing_mask :pin_to_bottom, :flexible_width
-autoresizing_mask :fill_top
flexible_left: Sticks to the right side
flexible_width: Width varies with parent
flexible_right: Sticks to the left side
flexible_top: Sticks to the bottom
@@ -697,9 +704,19 @@
can be used to send events from the Layout to your controller, further
simplifying the controller code (and usually making it more testable). See the
[MotionKit::Events documentation][motion-kit-events] for more information.
[motion-kit-events]: https://github.com/rubymotion/motion-kit-events
+
+
+### MotionKit::Templates
+
+ gem install motion-kit-templates
+
+Adds project templates, for use with `motion create`.
+
+ motion create foo --template=mk-ios
+ motion create foo --template=mk-osx
## Some handy tricks and Features
### Orientation specific styles