Latest 1.0.1
Homepage https://github.com/llodi/CustomModalTransition
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

This is simple framework for Swift or Objective-C to present your own controllers modally .
You just need to put var into controller which you want to be presented modally, like this:

let modalTransitor = CustomModalTransition(option: .center, horizontalInsets: 20, hiewHeight: 262)

and set this var to transition delegate:

let vc = SomeUIViewController.instantiateViewController(withIdentifier: "SomeID")
vc.modalPresentationStyle = .custom
vc.transitioningDelegate = vc.modalTransitor

There are two option available for presentation:

  • .center (for Objective-c: UICustomTransitionOptionCenter) – modal view controller will be shown in the centre of the screen
  • .bottom (for Objective-c: UICustomTransitionOptionBottom) – it will be shown in bottom of the screen.

The parameter horizontalInsets is responsible for insets from left and right, with bottom option it’s also responsible for bottom inset.

Latest podspec

{
    "name": "CustomModalTransition",
    "version": "1.0.1",
    "summary": "Custom modal transition framework",
    "homepage": "https://github.com/llodi/CustomModalTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ilya Dolgopolov": "val-idol@yandex.ru"
    },
    "social_media_url": "http://twitter.com/lllodi",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/llodi/CustomModalTransition.git",
        "tag": "v1.0.1"
    },
    "public_header_files": "CustomModalTransition/*.h",
    "source_files": "CustomModalTransition/*.{h,m}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This