An open API service indexing awesome lists of open source software.

https://github.com/meniny/presentationsettings

⚙️ Configuration for UIViewController presentation.
https://github.com/meniny/presentationsettings

presentation transition-animation uiviewcontroller

Last synced: about 1 year ago
JSON representation

⚙️ Configuration for UIViewController presentation.

Awesome Lists containing this project

README

          





Version
Author
Build Passing
Swift


Platforms
MIT


Cocoapods
Carthage
SPM

# Introduction

## What's this?

Configuration for `UIViewController` presentation.

## Preview



## Requirements

* iOS 8.0+
* Xcode 9 with Swift 4

## Installation

#### CocoaPods

```ruby
pod 'PresentationSettings'
```

## Contribution

You are welcome to fork and submit pull requests.

## License

`PresentationSettings` is open-sourced software, licensed under the `MIT` license.

## Usage

The simplest way:

```swift
@IBAction func showAlert(_ sender: UIButton) {
let alert = SomeController.init()
self.present(viewController: alert, settings: .default, animated: true, completion: nil)
}
```

Create your custom presentation settings:

```swift
let type = PresentationType.dynamic(center: .center)
let settings = PresentationSettings.init(presentationType: type)
settings.transitionType = nil
settings.dismissTransitionType = nil
settings.dismissAnimated = true
settings.dismissOnSwipe = false
settings.dismissOnTap = false
settings.keyboardTranslationType = .moveUp
....
```