Latest 1.1
Homepage https://github.com/Sa74/STBookTransition
License MIT
Platforms ios 9.0
Authors

A custom view transition that provides 3D book fold and unfold animation for view display and hide

CI Status
Version
License
Platform

Screenshot

STBookTransition

Installation

Cocoapods

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

pod 'STBookTransition'

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

target 'MyApp' do
  pod 'STBookTransition', '~> 1.1'
  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 STBookTransition

Manual

  • Drag and drop STBookTransition.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 STBookTransition

Then, init STBookTransition with delegate as follows,

let bookTranstion:STBookTransition = STBookTransition()
bookTranstion.delegate = self

next, perform cube transition between your views as follows,

self.bookTransition?.animateView(displayView,           // View that you want to transit
                 style: transitionStyle,    // any available BookTransitionStyle
                 duration: 0.5)         // animation duration

Finally, implement the BookTransitionDelegate optional method if you would like to perform any additional actions,

func animationDidFinishWithView(displayView: UIView) {
        // Do any additional work if required
    }

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

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

Latest podspec

{
    "name": "STBookTransition",
    "version": "1.1",
    "summary": "UIView Book Transition",
    "description": "A custom view transition that provides 3D book fold and unfold animation for view display and hide",
    "homepage": "https://github.com/Sa74/STBookTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sasi M": "[email protected]"
    },
    "social_media_url": "http://twitter.com/Sasi3726",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source": {
        "git": "https://github.com/Sa74/STBookTransition.git",
        "tag": "1.1"
    },
    "source_files": "STBookTransition/STBookTransition/STBookTransition.swift",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This