{"id":32315887,"url":"https://github.com/davnag/djsemimodalviewcontroller","last_synced_at":"2025-10-23T10:54:32.941Z","repository":{"id":56907517,"uuid":"127624016","full_name":"davnag/DJSemiModalViewController","owner":"davnag","description":"Simple semi modal presentation dialog with stacked content","archived":false,"fork":false,"pushed_at":"2019-07-20T20:37:13.000Z","size":3469,"stargazers_count":137,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-23T10:54:32.638Z","etag":null,"topics":["cocoapods","dialog","ios","modal","presentation","swift","uistackview","uiviewcontroller"],"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/davnag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-01T11:42:00.000Z","updated_at":"2025-01-03T21:05:18.000Z","dependencies_parsed_at":"2022-08-20T19:50:21.697Z","dependency_job_id":null,"html_url":"https://github.com/davnag/DJSemiModalViewController","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/davnag/DJSemiModalViewController","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davnag%2FDJSemiModalViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davnag%2FDJSemiModalViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davnag%2FDJSemiModalViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davnag%2FDJSemiModalViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davnag","download_url":"https://codeload.github.com/davnag/DJSemiModalViewController/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davnag%2FDJSemiModalViewController/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280606612,"owners_count":26359387,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cocoapods","dialog","ios","modal","presentation","swift","uistackview","uiviewcontroller"],"created_at":"2025-10-23T10:54:30.049Z","updated_at":"2025-10-23T10:54:32.933Z","avatar_url":"https://github.com/davnag.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DJSemiModalViewController\n\nDJSemiModalViewController is a semi modal presentation dialog that grows with it´s added content. DJSemiModalViewController works for iPhone and iPad. DJSemiModalViewController mimic the design of the default NFC popup dialog.\n\n\u003cimg src=\"https://raw.githubusercontent.com/davnag/DJSemiModalViewController/master/Screencast_1.gif\" width=\"320\"\u003e\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nDJSemiModalViewController is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'DJSemiModalViewController'\n```\n\n## How to use it\n\n```swift\n\n@IBAction func buttonAction(_ sender: Any) {\n\n    let controller = DJSemiModalViewController()\n    \n    controller.title = \"Title\"\n    \n    let label = UILabel()\n    label.text = \"An example label\"\n    label.textAlignment = .center\n    controller.addArrangedSubview(view: label)\n\n    controller.presentOn(presentingViewController: self, animated: true, onDismiss: { })\n}\n\n```\n\n### Add views to content StackView\n\n```swift\n\npublic func addArrangedSubview(view: UIView)\n\npublic func addArrangedSubview(view: UIView, height: CGFloat)\n\npublic func insertArrangedSubview(view: UIView, at index: Int)\n\n```\n\n### Presenting the ViewController\n\n```swift\n\npublic func presentOn(presentingViewController: UIViewController, animated: Bool = true, onDismiss dismissHandler: ViewWillDismiss?)\n\n```\n\n### Settings\n\n```swift\ncontroller.automaticallyAdjustsContentHeight = true\n  \ncontroller.maxWidth = 420\n\ncontroller.minHeight = 200\n\ncontroller.titleLabel.font = UIFont.systemFont(ofSize: 22, weight: UIFont.Weight.bold)\n\ncontroller.closeButton.setTitle(\"Done\", for: .normal)\n\n```\n\n## Author\n\nDavid Jonsén\n\n## License\n\nDJSemiModalViewController is available under the MIT license. See the LICENSE file for more info.\n\n## Todo\n\n- Make it possible to turn close methods on/off; close button, tap on background, drag gesture.\n\n## Credits\n\nPhoto by rawpixel.com on Unsplash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavnag%2Fdjsemimodalviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavnag%2Fdjsemimodalviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavnag%2Fdjsemimodalviewcontroller/lists"}