{"id":16685050,"url":"https://github.com/tungvoduc/dtoverlaycontroller","last_synced_at":"2025-03-17T00:33:00.384Z","repository":{"id":53719253,"uuid":"192363789","full_name":"tungvoduc/DTOverlayController","owner":"tungvoduc","description":"A customizable and easy-to-use overlay view controller container.","archived":false,"fork":false,"pushed_at":"2021-03-18T08:14:51.000Z","size":14552,"stargazers_count":83,"open_issues_count":3,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-03-14T20:04:33.512Z","etag":null,"topics":["overlay","swift","swift-package-manager","swift5","uikit","viewcontroller"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tungvoduc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2019-06-17T14:35:09.000Z","updated_at":"2023-09-13T15:02:38.000Z","dependencies_parsed_at":"2022-09-04T01:40:25.511Z","dependency_job_id":null,"html_url":"https://github.com/tungvoduc/DTOverlayController","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungvoduc%2FDTOverlayController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungvoduc%2FDTOverlayController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungvoduc%2FDTOverlayController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tungvoduc%2FDTOverlayController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tungvoduc","download_url":"https://codeload.github.com/tungvoduc/DTOverlayController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"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":["overlay","swift","swift-package-manager","swift5","uikit","viewcontroller"],"created_at":"2024-10-12T14:45:53.021Z","updated_at":"2025-03-17T00:32:59.389Z","avatar_url":"https://github.com/tungvoduc.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DTOverlayController\n\n[![CI Status](https://img.shields.io/travis/tungvoduc/DTOverlayController.svg?style=flat)](https://travis-ci.org/tungvoduc/DTOverlayController)\n[![Version](https://img.shields.io/cocoapods/v/DTOverlayController.svg?style=flat)](https://cocoapods.org/pods/DTOverlayController)\n[![License](https://img.shields.io/cocoapods/l/DTOverlayController.svg?style=flat)](https://cocoapods.org/pods/DTOverlayController)\n[![Platform](https://img.shields.io/cocoapods/p/DTOverlayController.svg?style=flat)](https://cocoapods.org/pods/DTOverlayController)\n\n## Screenshots\n|\u003cimg src=\"Screenshots/screenshot.gif\" width=\"300\"\u003e|\u003cimg src=\"Screenshots/screenshot.png\" width=\"300\"\u003e|\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Usage\nTo present a view controller inside an over lay controller, simply do in your view controller:\n\n```swift\nlet overlayController = DTOverlayController(viewController: viewController)\npresent(overlayController, animated: true, completion: nil)\n\n```\n\nThere are other properties that you can use to customize your over lay controller. These are some of them:\n\n```swift\nlet overlayController = DTOverlayController(viewController: viewController)\n\n// View controller is automatically dismissed when you release your finger\noverlayController.dismissableProgress = 0.4\n\n// Enable/disable pan gesture\noverlayController.isPanGestureEnabled = false\n\n// Update top-left and top-right corner radius\noverlayController.overlayViewCornerRadius = 10\n\n// Control the height of the view controller\noverlayController.overlayHeight = .dynamic(0.8) // 80% height of parent controller\noverlayController.overlayHeight = .static(300) // fixed 300-point height\noverlayController.overlayHeight = .inset(50) // fixed 50-point inset from top\n\n```\n\nYou can check more of these configurations in the library. `DTOverlayController`\nwill be further developed and new features will be coming in next releases. Feel free to contribute or suggest improvements by creating issues.\n\n## Requirements\n- iOS 9.0+\n\n## Installation\n\n### CocoaPods\nAdd the following line to your Podfile:\n\n```ruby\npod 'DTOverlayController'\n```\n\n### Swift package manager\n`DTOverlayController` is available for SPM from version `1.0.2`.\nAdd the following to the dependencies of your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/tungvoduc/DTOverlayController\", from: \"1.0.x\")\n```\n\n## Author\n\nTung Vo, tung98.dn@gmail.com\n\n## License\n\nDTOverlayController is available under the MIT license. See the LICENSE file for more info.\n\n## Feedbacks \u0026 requests\n- Open an issue if you find a bug, make a proposal or simply need some help.\n- You can also contact me via [email](mailto:tung98.dn@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftungvoduc%2Fdtoverlaycontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftungvoduc%2Fdtoverlaycontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftungvoduc%2Fdtoverlaycontroller/lists"}