BeanTransitionManager
A Pinterest style segue for expanding UIImageViews into detail views.
Install / Use
/learn @sfwalsh/BeanTransitionManagerREADME
BeanTransitionManager
[](https://travis-ci.org/Stephen Walsh/BeanTransitionManager)
Description
BeanTransitionManager is a means for expanding UIImageViews into detail views in a way similar to that used in the Pinterest iOS app.

Usage
To run the example project, clone the repo, and run pod install from the Example directory first.
Implementing the transition effect is quite easy:
The source view controller should store a BeanTransitionManager property and initialise it using _beanTransitioningManager = [[BeanTransitionManager alloc] initWithExpandingImageView:self.imageView andTransitionDuration:1.0];
where the expandingImageView property is the imageView that you want to expand into the destination view controller.
The expandingImageView property of the BeanTransitionManager can be updated as need be using [self.beanTransitioningManager updateExpandingImageView:imageView].
A convienence method - (void)updateExpandingImageViewWithCell:atIndexPath:inCollectionView:onView:andDuration: for expanding UICollectionViewCells has also been included. A UICollectionViewCell subclass passed into this method must adhere to the BeanTransitionManagerCellExpanding protocol.
When segueing to the destination view controller assign the beanTransitioningManager property to the destination view controller's transitioning delegate:
destinationViewController.transitioningDelegate = self.beanTransitioningManager;
The destination view controller must adhere to the BeanTransitionManagerDelegate protocol.
This protocol only requires one readonly property delegateContentImageView which should return the destination imageView.
Requirements
iOS 7 or later.
Installation
BeanTransitionManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "BeanTransitionManager"
Author
Stephen Walsh, sw7891@hotmail.com
License
BeanTransitionManager is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.1kCommit, push, and open a PR
