{"id":20511159,"url":"https://github.com/lovoo/lvmodalqueue","last_synced_at":"2025-06-24T15:08:50.280Z","repository":{"id":75560636,"uuid":"44100617","full_name":"lovoo/LVModalQueue","owner":"lovoo","description":"This fixes 'NSInternalInconsistencyException's when presentViewController: and dismissViewController: are called, while a transition is already in progress. Transitions are queued for later execution.","archived":false,"fork":false,"pushed_at":"2024-07-25T09:42:44.000Z","size":994,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-06-19T22:46:31.043Z","etag":null,"topics":["ios","library"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/lovoo.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-12T10:31:22.000Z","updated_at":"2024-07-25T09:41:49.000Z","dependencies_parsed_at":"2024-11-18T07:48:03.018Z","dependency_job_id":null,"html_url":"https://github.com/lovoo/LVModalQueue","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lovoo/LVModalQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2FLVModalQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2FLVModalQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2FLVModalQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2FLVModalQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovoo","download_url":"https://codeload.github.com/lovoo/LVModalQueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovoo%2FLVModalQueue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261700848,"owners_count":23196504,"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","library"],"created_at":"2024-11-15T20:34:54.285Z","updated_at":"2025-06-24T15:08:50.255Z","avatar_url":"https://github.com/lovoo.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LVModalQueue\n\nThis fixes 'NSInternalInconsistencyException's when _presentViewController:_ and _dismissViewController:_ are called, while a transition is already in progress. Transitions are queued for later execution.\n\n[![Build Status](https://travis-ci.org/lovoo/LVModalQueue.svg?branch=master)](https://travis-ci.org/lovoo/LVModalQueue) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n## Quick start\n### Swift Package Manager\n```swift\ndependencies: [\n    .package(url: \"https://github.com/lovoo/LVModalQueue.git\", .upToNextMajor(from: \"0.3.0\"))\n]\n```\n\n### Cocoapods\n```ruby\npod 'LVModalQueue', :git =\u003e 'https://github.com/Lovoo/LVModalQueue'\n```\n\n__Done! You don't have to import anything or change your existing code!__\n\n## Sample\n\n![Sample image](Example/example.gif \"Sample\")\n\n## Motivation\n\nIf a presentation or dismissal is currently in progress, when starting another one, a _NSInternalInconsistencyException_ is thrown because a transition is already in progress.\n\nHaving a big app with a lot of external frameworks comes with a lot of challenges.\n\nOne of them is, that most of this frameworks tend to present their UIViewControllers on _[UIApplication sharedApplication].keyWindow.rootViewController_.\nHaving truly interactive UIViewController transitions could also lead to multiple concurrent presentations as the user can start a transition, while an old one is still running.\n\n## Implementation\n\nLVModalQueue hooks into presentations and dismissals by swizzling into UIViewControllers _presentViewController:animated:completion:_ and _dismissViewControllerAnimated:completion:_ methods. If a transition is currently animating, it is queued for later execution when the transition is finished.\n\n## Supported iOS Versions\n\nLVModalQueue was tested on iOS 7 and above in the [LOVOO App](http://lovoo.com) with millions of users and reduced our crashes with concurrent transitions to zero.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovoo%2Flvmodalqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovoo%2Flvmodalqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovoo%2Flvmodalqueue/lists"}