Skip to content

mayqiyue/AISphereView

Repository files navigation

AISphereView

CI Status Version License Platform

Purpose

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:

Example

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.

Installation

AISphereView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AISphereView'

Usage

The API is very easy to use:

- (void)pushToCenter:(UIView *)centerView withItems:(NSArray <UIView *>*)items;

- (void)popToCenter:(UIView *)centerView withItems:(NSArray <UIView *>*)items;

PS:

  1. For saving memory. AISphereView will not hold 'items' when '- (void)pushToCenter:(UIView *)centerView withItems:(NSArray <UIView >)items' gets called.
  2. You need use a stack to manager the data yourself when push. (Example project for your reference)

Author

mayqiyue, xu20121013@gmail.com

License

AISphereView is available under the MIT license. See the LICENSE file for more info.