Yet another Objective-C repo that will remain unmaintained indefinitely or until I can write a Swift version to replace it.
Here is a short video showing the animation in a table view:
Initializes an allocated eLBeeIsolator object using a Parent View (required), a Table View that resides in the Parent View, alng with the 3 available completion blocks: willStartBlock, didAnimateBlock, didIsolateBlock
Parameters
-
parentView
UIView *
- The
UIView
that should be considered the primary parent of the view you want to isolate - This will typeically just self.view
- The
-
tableView
UITableView *
- A
UITableView
should be supplied if the view to be isolated is aUITableViewCell
- If it is a cell, then this parameter is required
- Otherwise, it is optional and be set to
nil
- A
-
willStartBlock
^block
- The block recieves a
BOOLEAN
itemIsBeingIsolated - A completion block to be called before the view is (de)isolated
- Useufl for when you'd like to prepare other views (animate the navigation hidden for instance) before hand
- The block recieves a
-
didAnimateBlock
^block
- The block recieves a
BOOLEAN
itemIsBeingIsolated - A completion block called after animating the isolated view
- The block recieves a
-
didIsolateBlock
^block
- The block recieves a
BOOLEAN
itemIsBeingIsolated - A completion block to be called once isolation of the view is complete
- The block recieves a
Additional Initializers
-(instancetype)initWithParentView:havingTableView:didAnimateCompletion:withCompletion:
-(instancetype)initWithParentView:havingTableView:withCompletion:
-(instancetype)initWithParentView:havingTableView
-(instancetype)initWithParentView
Categories included within the isolator folder:
- Nametag - Add a "name tag" identifier to any view as discussed here
- Overlay - Add a overlay to a view
- SnapshotView - Snapshot a view
There are a bunch of other helper methods and stuff added to this guy, I'm just too lazy right now to list them all out.
So - seek and destroy at will!
There are many ways to do this same affect. A much cleaner/better way would be to just transition to a new View as the animation. This code is just an alternative to that ( and also just me muxing around ).