{"id":885,"url":"https://github.com/PSPDFKit-labs/PSTModernizer","last_synced_at":"2025-07-30T19:32:53.828Z","repository":{"id":145147174,"uuid":"61761004","full_name":"PSPDFKit-labs/PSTModernizer","owner":"PSPDFKit-labs","description":"Makes it easier to support older versions of iOS by fixing things and adding missing methods","archived":false,"fork":false,"pushed_at":"2017-06-12T18:02:17.000Z","size":352,"stargazers_count":214,"open_issues_count":1,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-14T14:05:11.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C++","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/PSPDFKit-labs.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":"2016-06-23T00:40:14.000Z","updated_at":"2024-03-19T00:04:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa8316bb-dd68-483c-94dc-55299726e5cc","html_url":"https://github.com/PSPDFKit-labs/PSTModernizer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSPDFKit-labs%2FPSTModernizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSPDFKit-labs%2FPSTModernizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSPDFKit-labs%2FPSTModernizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSPDFKit-labs%2FPSTModernizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PSPDFKit-labs","download_url":"https://codeload.github.com/PSPDFKit-labs/PSTModernizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228178957,"owners_count":17881114,"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":[],"created_at":"2024-01-05T20:15:33.886Z","updated_at":"2024-12-04T19:32:13.060Z","avatar_url":"https://github.com/PSPDFKit-labs.png","language":"Objective-C++","funding_links":[],"categories":["Code Quality"],"sub_categories":["Other free courses","Getting Started"],"readme":"# PSTModernizer\n\nPSTModernizer carefully applies patches to UIKit and related Apple frameworks to fix known radars with the least impact.\nThe current set of patches just applies to iOS 9 and nothing is executed on iOS 10, as the bugs have been fixed there.\n\nThis project later on might also patch-add a few essential missing elements in iOS 10 if there's need - currently the focus is just to fix various bugs.\n\n## Installation\n\nSimply copy `PSTModernizer.h/mm` into your project, then call `[PSTModernizer installModernizer];` somewhere early, ideally in your app delegate.\n\nCurrently covers following radars (all of them have been fixed in iOS 10)\n\n* [26954460 - UIImage creation has a race conditon on background threads.](https://openradar.appspot.com/26954460)\u003cbr\u003e\n  The radar is actually for fixing the documentation, [the original issue is explained here.](https://pspdfkit.com/blog/2016/investigating-thread-saftey-of-UIImage/)\n* [26295020 - Action sheets presented for links/numbers don’t work in presented view controllers](https://openradar.appspot.com/26295020)\n\nYou can simply delete the workarounds that do not affect you - every workaround is self-contained and can be individually removed.\n\n## FAQ\n\nQ: *Why?*\u003cbr\u003e\nA: Because we need to support older UIKit versions. [At PSPDFKit we support n-1](https://pspdfkit.com/guides/ios/current/announcements/version-support/), so we're just about to drop iOS 8 and will likely use something like this for our next major release. This project should make it easier to patch up the system so you need to write less ugly code.\n\nQ: *Isn't that partly using private API?*\u003cbr\u003e\nA: Partly. The goal is to write workarounds using just public API, but it's not always possible or would lead to much more scary code. If we revert to private API, we use it for good, not evil. You decide. Since we restrict API usage to versions that have been already released and don't apply it to unknown versions, the risk is minimal. If you do find a way to patch things without private API that are similary effective and not 10x the code, please submit a pull request. We also only use it to work around bugs, not for accessing new features. Of course I can't make any guarantees if Apple accepts this on app review. (but so far we have not gotten a report that blocks this, and worst case you disable the parts that are private and just have a slightly more broken app.) \n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Peter Steinberger, PSPDFKit GmbH.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## About\n\n\u003ca href=\"https://pspdfkit.com/\"\u003e\n  \u003cimg src=\"https://avatars2.githubusercontent.com/u/1527679?v=3\u0026s=200\" height=\"80\" /\u003e\n\u003c/a\u003e\n\nThis project is maintained and funded by [PSPDFKit](https://pspdfkit.com/).\n\nSee [our other open source projects](https://github.com/PSPDFKit-labs), read [our blog](https://pspdfkit.com/blog/) or say hello on Twitter ([@PSPDFKit](https://twitter.com/pspdfkit)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPSPDFKit-labs%2FPSTModernizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPSPDFKit-labs%2FPSTModernizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPSPDFKit-labs%2FPSTModernizer/lists"}