{"id":15038378,"url":"https://github.com/fritzgerald/popitup","last_synced_at":"2025-04-09T23:40:36.778Z","repository":{"id":62450960,"uuid":"126928944","full_name":"fritzgerald/PopItUp","owner":"fritzgerald","description":"a Popup system for iOS","archived":false,"fork":false,"pushed_at":"2019-11-04T10:50:57.000Z","size":42,"stargazers_count":25,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T13:17:27.269Z","etag":null,"topics":["ios","popover","popup","swift","swift-4","uikit","xcode"],"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/fritzgerald.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-03-27T04:30:54.000Z","updated_at":"2023-08-26T13:18:09.000Z","dependencies_parsed_at":"2022-11-01T23:46:19.564Z","dependency_job_id":null,"html_url":"https://github.com/fritzgerald/PopItUp","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/fritzgerald%2FPopItUp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritzgerald%2FPopItUp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritzgerald%2FPopItUp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritzgerald%2FPopItUp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fritzgerald","download_url":"https://codeload.github.com/fritzgerald/PopItUp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131466,"owners_count":21052819,"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":["ios","popover","popup","swift","swift-4","uikit","xcode"],"created_at":"2024-09-24T20:38:13.891Z","updated_at":"2025-04-09T23:40:36.756Z","avatar_url":"https://github.com/fritzgerald.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"PopItUp\n=======\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![GitHub release](https://img.shields.io/github/release/fritzgerald/PopItUp.svg)](https://github.com/fritzgerald/PopItUp/releases) [![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/PopItUp.svg)](https://cocoapods.org/pods/PopItUp)\n\n**PopItUp** is a mini framework that add a new method to **UIViewContollers** to help you present controllers like popup and have the same visual effect has a system popup would have.\n\n## How does it work?\nPopItUp use new modal presentation style introduced in iOS 8 to present the presented view controller on top of the presenting on.\n\nBy default the popup size is determined using autolayout which means that with the right constraints you don't have to worry about the popup size. \n\n## Screenshot\n\n![Exemple](https://raw.githubusercontent.com/fritzgerald/screenshots/master/PopItUp/Capture01.gif)\n\n## Requirements\n* iOS 9.0+\n* Xcode 9.0+\n* Swift 4.0+\n\n## Installation\n### CocoaPods\nif not installed yet install cocoaPods with the following command\n\n```\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build PopItUp\n\nTo integrate **PopItUp** into your Xcode project using CocoaPods, specify it in your Podfile:\n\n```\nplatform :ios, '9.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'PopItUp'\nend\n\n```\n\n\u003e This will install the latest version of Popup\n\nApply your configuration with the following command:\n\n```\n$ pod install\n```\n\n## Usage\n### Presenting a popup view controller\n```swift\nimport PopItUp\n\n\npresentPopup(TestPopupViewController(), animated: true, completion: nil)\n```\n\n### Dismiss the popup\n\nBecause we use the standard iOS modal system all you have to do is call the **dismiss(animated:completion:)** method\n\n```swift\ndismiss(animated: true, completion: nil)\n```\n\n### Customize the popup presentation\n\nThe presentPopup method contains multiple parameters to customize the final result:\n\n* ***backgroundStyle***: the background to display behind the popup. can be either a color or a blur.\n* ***constraints***: List of constraints that apply to the popup.\n* ***transitioning***: Transition to apply when presenting the view.\n* ***autoDismiss***: true if the popup can be dismiss by a tap outside is bounds, false otherwise\n\n```swift\npresentPopup(TestPopupViewController(),\n             animated: true,\n             backgroundStyle: .blur(.dark), // present the popup with a blur effect has background\n             constraints: [.leading(20), .width(220)], // fix leading edge and the width\n             transitioning: .slide(.left), // the popup come and goes from the left side of the screen\n             autoDismiss: false, // when touching outside the popup bound it is not dismissed\n             completion: nil)\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffritzgerald%2Fpopitup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffritzgerald%2Fpopitup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffritzgerald%2Fpopitup/lists"}