Latest 1.4
Homepage https://github.com/Sa74/STCubeTransition
License MIT
Platforms ios 9.0
Authors

A custom view transition that provides transition between 2 different views with 3D cube rotate effect.

CI Status
Version
License
Platform

Screenshot

STCubeTransition

Installation

Cocoapods

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

pod 'STCubeTransition'

You want to add pod ‘STCubeTransition’, ‘~> 1.4’ similar to the following to your Podfile:

target 'MyApp' do
  pod 'STCubeTransition', '~> 1.4'
  use_frameworks!
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Alternatively to give it a test run, run the command:

pod try STCubeTransition

Manual

  • Drag and drop STCubeTransition.swift class into your project in Xcode.
  • Make sure you select all the targets required.

Usage

It is much simpler than performing an UIView animation.

If you use Cocoapods, First of all, import the framework:

import STCubeTransition

Then, init CubeTransition as follows,

let cubeTranstion:CubeTransition = CubeTransition()

next, perform cube transition between your views as follows,

cubeTranstion.translateView(faceView!,                                // currently visible view
                            toView: subMenu!,                         // hidden view that you want to display from this transition
                            direction: direction,                     // any available CubeTransitionDirection
                            duration: 0.5)                            // animation duration 
                            { (displayView) in
                                // animation completion callback 
                            }

Finally, use the Completion block if you would like to perform any additional actions,

Here you go you are all setup for performing cool Cube Transition in you app 👍

Author

Sasi Moorthy, 📧 [email protected] Looking out for freelance work, if interested feel free to contact me.

Contributing

I :heart: pull requests. If you’d like to see new features, fix bugs, or lodge
issues then please do so via Github.

License

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

Latest podspec

{
    "name": "STCubeTransition",
    "version": "1.4",
    "summary": "UIVIew 3D Cube rotate effect",
    "description": "A custom view transition that provides transition between 2 different views with 3D cube rotate effect.",
    "homepage": "https://github.com/Sa74/STCubeTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "swift_version": "4.2",
    "authors": {
        "Sasi Moorthy": "[email protected]"
    },
    "social_media_url": "http://twitter.com/Sasi3726",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Sa74/STCubeTransition.git",
        "tag": "1.4"
    },
    "source_files": "STCubeTransition/STCubeTransition/STCubeTransition/STCubeTransition.swift",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This