andrewsardone + uiview   7

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
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
Example project for implementing a Tweetbot-style parallax blurred and scrolling profile cover image.


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:

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.

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.

via:iosdevweekly  coreanimation  uiview  uikit  animation  ios 
february 2014 by andrewsardone

Copy this bookmark: