I like to realize UI effects when I am free. The AISphereView was inspire by QQ Browser.
Here is the proto effect:
And here is AISphereView:
You can clone or download the example to have fun with it.
To run the example project, clone the repo, and run
pod install from the Example directory first.
AISphereView is available through CocoaPods. To install it, simply add the following line to your Podfile:
The API is very easy to use:
- (void)pushToCenter:(UIView *)centerView withItems:(NSArray <UIView *>*)items; - (void)popToCenter:(UIView *)centerView withItems:(NSArray <UIView *>*)items;
- For saving memory. AISphereView will not hold 'items' when '- (void)pushToCenter:(UIView *)centerView withItems:(NSArray <UIView >)items' gets called.
- You need use a stack to manager the data yourself when push. (Example project for your reference)
mayqiyue, [email protected]
AISphereView is available under the MIT license. See the LICENSE file for more info.