andrewsardone + uiview   7

cwRichardKim/RKNotificationHub
Make any UIView a full fledged notification center


A nice badging/notification count API for any UIView.
github_repo  UIView  ios  notification 
march 2015 by andrewsardone
orta/ORStackView
Vertically stack views using Auto Layout, with an order specific subclass that uses view tags for ordering.


A nice alternative to overloading UITableVew/UICollection view when all you want is simple vertical block layout
ios  github_repo  autolayout  UIView  UIKit  UITableView  UICollectionView 
january 2015 by andrewsardone
benpackard/BENTweetbotHeader
Example project for implementing a Tweetbot-style parallax blurred and scrolling profile cover image.

via http://cocoacovers.com/blog/2014/03/31/the-zooming-blurring-profile-photo-by-tweetbot/

I haven’t thoroughly looked at the code, but putting aside to hopefully learn some auto layout tricks
UIViewController  ios  UIView  autolayout  github_repo 
june 2014 by andrewsardone
RACSignal with Animation · Issue #1248 · ReactiveCocoa/ReactiveCocoa
An example of extracting some simple behavior from [ReactiveCocoaLayout][rcl] that binds a property within an animation block. The idea is that you can use the regular RAC() macro on some animatable UIView property and chain it to a -[RACSignal animateWithDuration:options:] operation:

```objc
RAC(view, alpha) = [signalThatEmitsVariousAlphas animateWithDuration:0.3 options:NULL];
```

It works by -map'ing the next events from the signal ito a +[UIView animateWithDuration:options:animations:completion:] that delegates to a RACSubscriber.

For these animations, it's neat how simple it is to bridge into the reactive world. I’m curious to see how it would have helped me with some [UILabel animation trickiness][uil] I was having.

[rcl]: https://pinboard.in/u:andrewsardone/b:bd82ad74ef92
[uil]: http://gist.io/9159911
ReactiveCocoa  reactiveprogramming  uikit  animation  UIView 
april 2014 by andrewsardone
Clear* Animation Code
Good examples of explanations of clean code applied to animations.

It also included some good reasoning behind the ways of Core Animation. I particularly liked the seciton on `removedOnCompletion` as well as the distinction between the model and presentation layers.
If the animation mysteriously went away, the model value should be the expected end state. The best animation code is written as if the animation was just decoration, if a value should change then a value should change.


An in-depth example was provided in [this StackOverflow][so], but generally I like the sentiment of not relying on animations for the proper state of your UI.

[so]: https://stackoverflow.com/questions/21159500/how-to-make-ui-object-responsive-after-cabasicanimation
via:iosdevweekly  coreanimation  uiview  uikit  animation  ios 
february 2014 by andrewsardone

Copy this bookmark:



description:


tags: