Latest 1.0.0
Homepage https://github.com/daihase/LSDialogViewController
License MIT
Platforms ios 8.0
Authors

Build Status
[Language]()
License
Platform
CocoaPodsDL

LSDialogViewController is able to easily display a custom view as a dialog.

LSDialogViewController_animation

Requirement

  • Swift 2+
  • iOS 8.0+

Installation

From CocoaPods

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

# for Swift 4
pod 'LSDialogViewController', '~> 1.0.0'

# for Swift 3
pod 'LSDialogViewController', '~> 0.1.9'

# for Swift 2
pod 'LSDialogViewController', '0.1.0'

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Examples


import LSDialogViewController
// to show the dialog
let dialogViewController: CustomDialogViewController = CustomDialogViewController(nibName:"CustomDialog", bundle: nil)
dialogViewController.delegate = self
self.presentDialogViewController(dialogViewController, animationPattern: animationPattern, completion: { () -> Void in })

// to dismiss the dialog
self.dismissDialogViewController(animationPattern)

Configuration

presentDialogViewController(
  // required
  dialogViewController: :UIViewController,
  // default LSAnimationPattern.FadeInOut
  animationPattern: LSAnimationPattern,
  // default LSDialogBackgroundViewType.Solid
  backgroundViewType: LSDialogBackgroundViewType,
  // default true
  dismissButtonEnabled: Bool,
  // optional
  completion: (() -> Swift.Void)?
)

Other background view type. (.Gradient .None)

![Image][1]
.
![Image][2]

License

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

[1]:
https://raw.github.com/wiki/daihase/resource_manage/gifs/zoominout_gradient.gif
[2]:
https://raw.github.com/wiki/daihase/resource_manage/gifs/slide-bottombottom_none.gif

Latest podspec

{
    "name": "LSDialogViewController",
    "version": "1.0.0",
    "summary": "This ViewController is able to easily display a custom view as a dialog.",
    "description": "You can easily display a dialog that has a variety of effects Using this library.",
    "homepage": "https://github.com/daihase/LSDialogViewController",
    "license": "MIT",
    "authors": {
        "daihase": "[email protected]"
    },
    "source": {
        "git": "https://github.com/daihase/LSDialogViewController.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/librakinoko",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LSDialogViewController/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This