Latest 0.2.0
Homepage https://github.com/LeoMobileDeveloper/ImageMaskTransition
License MIT
Platforms ios 8.0
Authors

Version Platform
Language
License

Present then Dismiss

Require

  • iOS 8
  • Swift 3.0

!!!!!You need to run the Demo Project on device to see blur effect

For Swift 2.3,See branch Swift2

Install

CocoaPod

pod "ImageMaskTransition"

Useage

Hold a property of ImageMaskTransition in firstViewController

var imageMaskTransiton:ImageMaskTransition?

Present a View Controller

The frame of toImageView must be the final frame after layout

let dvc = DetailViewController()
let config = TransitionConfig.defaultConfig(fromImageView: cell.imageView, toImageView:dvc.imageView)
imageMaskTransiton =  ImageMaskTransition(config: config)
dvc.transitioningDelegate = imageMaskTransiton
present(dvc, animated: true, completion: nil)

Push a ViewController

let dvc = DetailViewController()
let config = TransitionConfig.defaultConfig(fromImageView: cell.imageView, toImageView:dvc.imageView)
imageMaskTransiton =  ImageMaskTransition(config: config)
self.navigationController?.delegate = imageMaskTransiton
self.navigationController?.pushViewController(dvc, animated: true)

Author

Leo, [email protected]

License

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

中文

关于实现原理,参见这片博客

实现一个复杂动画的界面转场(Swift)

Latest podspec

{
    "name": "ImageMaskTransition",
    "version": "0.2.0",
    "summary": "Simple but powerful and beautiful ViewController transtion for Swift 3",
    "description": "This is a ViewController transition to create beautiful image transition between ViewControllers",
    "homepage": "https://github.com/LeoMobileDeveloper/ImageMaskTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Leo": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LeoMobileDeveloper/ImageMaskTransition.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This