{"id":24302860,"url":"https://github.com/digipolitan/dialog-animator","last_synced_at":"2025-09-26T06:30:21.422Z","repository":{"id":56907378,"uuid":"79344492","full_name":"Digipolitan/dialog-animator","owner":"Digipolitan","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-15T22:47:46.000Z","size":480,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-21T20:45:20.930Z","etag":null,"topics":["alertview","animation","carthage","cocoapods","fastlane","framework","ios","swift","tvos"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Digipolitan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-18T13:52:31.000Z","updated_at":"2017-12-29T13:23:01.000Z","dependencies_parsed_at":"2022-08-20T19:50:23.312Z","dependency_job_id":null,"html_url":"https://github.com/Digipolitan/dialog-animator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fdialog-animator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fdialog-animator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fdialog-animator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fdialog-animator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Digipolitan","download_url":"https://codeload.github.com/Digipolitan/dialog-animator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234292491,"owners_count":18809356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alertview","animation","carthage","cocoapods","fastlane","framework","ios","swift","tvos"],"created_at":"2025-01-17T00:19:55.446Z","updated_at":"2025-09-26T06:30:20.492Z","avatar_url":"https://github.com/Digipolitan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"DGDialogAnimator\n================\n\n[![Swift Version](https://img.shields.io/badge/swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n[![Build Status](https://travis-ci.org/Digipolitan/dialog-animator.svg?branch=master)](https://travis-ci.org/Digipolitan/dialog-animator)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/DGDialogAnimator.svg)](https://img.shields.io/cocoapods/v/DGDialogAnimator.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/DGDialogAnimator.svg?style=flat)](http://cocoadocs.org/docsets/DGDialogAnimator.svg)\n[![Twitter](https://img.shields.io/badge/twitter-@Digipolitan-blue.svg?style=flat)](http://twitter.com/Digipolitan)\n\n`DGDialogAnimator` is a manager allowing you to quickly display **Dialogs** like **Toasts**, **Alerts** or even **Modal Form**, with only few lines of codes.\n\n![Capture](https://github.com/Digipolitan/dialog-animator/blob/master/Screenshots/capture.gif?raw=true \"Capture\")\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.\n\n### Prerequisites\n\nWorks with iOS 8+, tested on Xcode 8.2\n\n### Installing\n\nTo install the DGDialogAnimator using **cocoapods**\n\n- Add an entry in your Podfile  \n\n```\n# Uncomment this line to define a global platform for your project\nplatform :ios, '8.0'\n\ntarget 'YourTarget' do\n  frameworks\n   use_frameworks!\n\n  # Pods for YourTarget\n  pod 'DGDialogAnimator'\nend\n```\n\n- Then install the dependency with the `pod install` command.\n\n## Usage\n\n- Select the view to animate, its container, where the animation will start and where it will go.\n\n```swift\n\nlet toast = UIView(frame: CGRect(x: 0, y: 0, width: self.view.bounds/2, height: 100))    \nDGDialogAnimator.default.animate(view: toast,\n                                   in: self.view,\n                                 path: DGDialogAnimator.AnimationPath(initial: .top, intermediate: .top))\n\nlet notification = UIView(frame: CGRect(x: 0, y: 0, width: self.view.bounds, height: 250))    \nDGDialogAnimator.default.animate(view: notification,\n                                   in: self.view,\n                                 path: DGDialogAnimator.AnimationPath(initial: [.top, .left], intermediate: [.top, .right]))\n```\n\n### Configuration\n\nYou can customize the component by enabling few options:\n\n```swift\nvar options = DGDialogAnimator.Options()\noptions.hold = false\noptions.dismissDelay = 5\noptions.backdrop = false\noptions.blurEffectStyle = nil\n// ....\nDGDialogAnimator.default.animate(view: toast,\n                                   in: self.view,\n                                 with: options,\n                                 path: DGDialogAnimator.AnimationPath(initial: .top, intermediate: .top))\n\n```\n\nHere the list of all available options :\n\n| Property | type | Description  |\n| --- | --- | --- |\n| backdrop | `Bool` | Tells if the background behind the animated view will dismiss the view on touch |\n| blurEffectStyle | `UIBlurEffectStyle` | The blur effect added to the background. 3 values are available `.light` `.extraLight` `.dark` |\n| coverStatusBar | `Bool` | if set to `true` you must **NOT** set the container because the component will use automatically `UIWindow`. |\n| animationDuration | `TimeInterval` | How long the animation will last. |\n| dismissDelay | `TimeInterval` | How long the animated view will hold before dismissing itself |\n| enterAnimationCurve | `UIViewAnimationCurve` | Let you configure the animation curve when the view comes in the container |\n| leaveAnimationCurve | `UIViewAnimationCurve` | Let you configure the animation curve when the view leaves in the container |\n| hold | `Bool` | The view won't dismiss after `dismissDelay`. It will wait a call to the `dismiss()` method |\n\n## Built With\n\n[Fastlane](https://fastlane.tools/)\nFastlane is a tool for iOS, Mac, and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details!\n\nThis project adheres to the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).\nBy participating, you are expected to uphold this code. Please report\nunacceptable behavior to [contact@digipolitan.com](mailto:contact@digipolitan.com).\n\n## License\n\nDGDialogAnimator is licensed under the [BSD 3-Clause license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Fdialog-animator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigipolitan%2Fdialog-animator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Fdialog-animator/lists"}