{"id":2695,"url":"https://github.com/iamshezad/SHPopup","last_synced_at":"2025-08-03T00:32:22.384Z","repository":{"id":202019471,"uuid":"114225791","full_name":"iamshezad/SHPopup","owner":"iamshezad","description":"A lightweight library for popup view","archived":false,"fork":false,"pushed_at":"2021-08-11T05:03:27.000Z","size":3278,"stargazers_count":37,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-24T01:52:26.970Z","etag":null,"topics":["alert","alignment-options","animation","message","popup","popup-menu","swift","swift-4"],"latest_commit_sha":null,"homepage":null,"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/iamshezad.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,"governance":null}},"created_at":"2017-12-14T08:50:58.000Z","updated_at":"2024-11-22T14:11:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"23dee8e5-d53c-4b2a-8d6d-0950c9db6bc6","html_url":"https://github.com/iamshezad/SHPopup","commit_stats":null,"previous_names":["iamshezad/shpopup"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHPopup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHPopup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHPopup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamshezad%2FSHPopup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamshezad","download_url":"https://codeload.github.com/iamshezad/SHPopup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510778,"owners_count":17931761,"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":["alert","alignment-options","animation","message","popup","popup-menu","swift","swift-4"],"created_at":"2024-01-05T20:16:20.386Z","updated_at":"2024-12-06T18:30:41.903Z","avatar_url":"https://github.com/iamshezad.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/iamshezad.dev"],"categories":["UI"],"sub_categories":["Popup","Other free courses"],"readme":"# SHPopup\nSHPop is lightweight library used for popup view\n\n[![Version](https://img.shields.io/cocoapods/v/SHSnackBarView.svg?style=flat)](https://cocoapods.org/pods/SHPopup)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n[![Platform](https://img.shields.io/badge/platform-ios-blue.svg?style=flat)](https://cocoapods.org/pods/SHPopup)\n\n\n\u003cimg src=\"/Screenshots/mockup.png\" /\u003e\n\n\n### Sample One\n\u003cimg src=\"/Screenshots/SampleOne.gif\" /\u003e\n\n### Sample Two\n\u003cimg src=\"/Screenshots/SampleTwo.gif\" /\u003e\n\n### Sample Three\n\u003cimg src=\"/Screenshots/SampleThree.gif\" /\u003e\n\n## Features\n#### SHPopup supports a popup inside another popup without dismissing\n#### SHPopup is customizable \n\n## Installation\nJust drag and drop the SHPopup.swift file from SHPopup folder to your project.\n\n## Usage\n\n### Main viewcontroller must be embed in a navigation controller\n\n### Set Popup View\n Set a viewcontroller as popup view using setPopup function\n```swift\n    let PopupVC = setPopupVC(storyboradID:\"Main\",viewControllerID:\"restorationIdentifier\")\n```\nyou should set Storyboard name and viewcontroller id in setPopup function\n\n### Present Popup View\n```swift\n    self.presentPopup(controller: popupVC, completion: nil)\n```\n### Dismiss Popup View\n```swift\n    self.dismissPopup(completion: nil)\n```\n### Customization\n\n1. Popup View alignment options\n    .top\n    .center\n    .bottom\n    .custom  - you can specify the x and y point of popup view\n```swift\n    popupVC?.popupAlign = .top\n ```\ncustom alignment option\n```swift\n    popupVC?.popupCustomAlign = CGPoint(x: 100, y: 100)\n```\n2. Popup View animation options\n    .normal\n    .top\n    .bottom\n    .bottomBounce\n    .topBounce\n```swift\n    popupVC?.popupAnimation = .bottom\n```\n3. Poup View touch dismiss\n```swift\n    popupVC?.touchDismiss = true\n```\nBy default it is true\n\n4. Popup View Size - you can specify the width and height of popup view\n```swift\n    popupVC?.popupSize = CGSize(width: 250, height: 250)\n```\n5. Popup View overlay Color - you can specify any color as overlay\n```swift\n    popupVC?.overlayColor = UIColor.black\n```\n6. Popup View Corner Radius\n```swift\n    popupVC?.popupCorner = 5\n```\nFor more you can download the sample project.\n\n## Requirements\n\n* iOS 9.0+\n\n## Example\n\nDownload the Sample project.\n\n## Contact\n\n\u003cb\u003eShezad Ahamed\u003c/b\u003e\n\nFollow and contact me on:\n\n \u003ca  href=\"mailto:iamshezad.dev@gmail.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/gmail-%23D14836.svg?\u0026style=for-the-badge\u0026logo=gmail\u0026logoColor=white\"\u003e \u003c/a\u003e   \u003ca  href=\"https://www.instagram.com/iamshezad.dev/\"\u003e\u003cimg src=\"https://img.shields.io/badge/instagram-%23E4405F.svg?\u0026style=for-the-badge\u0026logo=instagram\u0026logoColor=white\"\u003e\u003c/a\u003e   \u003ca href=\"https://www.linkedin.com/in/iamshezad/\"\u003e\u003cimg src=\"https://img.shields.io/badge/linkedin-%230077B5.svg?\u0026style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\" \u003e\u003c/a\u003e\n\nIf you like my content, please consider buying me a coffee. Thank you for your support!\n\n\u003ca href=\"https://www.buymeacoffee.com/iamshezad.dev\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-yellow.png\" alt=\"Buy Me A Coffee\" width=\"174\" height=\"41\" \u003e\u003c/a\u003e\n\n## Acknowledge\n\nInspired by  [STZPopupView](https://github.com/STAR-ZERO/STZPopupView)\n\n## License\n\nSHPopup is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamshezad%2FSHPopup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamshezad%2FSHPopup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamshezad%2FSHPopup/lists"}