• Stars
    star
    215
  • Rank 183,925 (Top 4 %)
  • Language Objective-C++
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Makes it easier to support older versions of iOS by fixing things and adding missing methods

PSTModernizer

PSTModernizer carefully applies patches to UIKit and related Apple frameworks to fix known radars with the least impact. The current set of patches just applies to iOS 9 and nothing is executed on iOS 10, as the bugs have been fixed there.

This 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.

Installation

Simply copy PSTModernizer.h/mm into your project, then call [PSTModernizer installModernizer]; somewhere early, ideally in your app delegate.

Currently covers following radars (all of them have been fixed in iOS 10)

You can simply delete the workarounds that do not affect you - every workaround is self-contained and can be individually removed.

FAQ

Q: Why?
A: Because we need to support older UIKit versions. At PSPDFKit we support n-1, 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.

Q: Isn't that partly using private API?
A: 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.)

License

The MIT License (MIT)

Copyright (c) 2016 Peter Steinberger, PSPDFKit GmbH.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

This project is maintained and funded by PSPDFKit.

See our other open source projects, read our blog or say hello on Twitter (@PSPDFKit).

More Repositories

1

bypass

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
Elixir
932
star
2

pdfkit-invoice

Generate PDF Invoices with PDFKit
JavaScript
195
star
3

QuickDemo

Android QuickDemo
Kotlin
139
star
4

VanGogh

πŸ’₯ Android view animations powered by RxJava 2
Java
95
star
5

radar.apple.com

Sample Projects for Apple Feedback from PSPDFKit
Objective-C
85
star
6

browserslist.dev

A website to display compatible browsers from browserslist string.
TypeScript
69
star
7

sidetask

:awesome = Elixir's Task ++ Basho's sidejob library
Elixir
69
star
8

pspdfkit-webassembly-benchmark

Source for the PSPDFKit WebAssembly Benchmark: http://iswebassemblyfastyet.com
JavaScript
48
star
9

PDFViewerSwiftUI

A PDF Viewer built in SwiftUI and PSPDFKit
Swift
43
star
10

reviewbot

Reviewbot is a Slack bot that shows reviewable pull requests.
Ruby
40
star
11

clang-tidy-to-junit

A little script that can convert Clang-Tidy output to a JUnit XML file.
Python
30
star
12

lager_logger

A lager backend that forwards all log messages to Elixir's Logger
Elixir
27
star
13

HEIC-Benchmark

HEIC/HEIF Benchmark for iOS
Objective-C
21
star
14

iOS-UI-Testing-Comparison

Demo project to show how UI testing frameworks compare to each other. Here we are comparing EarlGrey, KIF and XCUI.
Swift
20
star
15

native-module-electron

JavaScript
20
star
16

libdispatch

C
19
star
17

cobertura_cover

Output test coverage information in Cobertura-compatible format
Elixir
12
star
18

webpack-express-examples

Example apps using express server and webpack-dev-server for serving the client code.
JavaScript
12
star
19

pdfjs-web-example-javascript

Example project for building a JavaScript PDF viewer with PDF.js. See the blog post for setup and usage.
JavaScript
10
star
20

zbase32

Human-oriented base-32 encoding
Elixir
9
star
21

wasm-worker-example

JavaScript
7
star
22

pspdfkit-tauri-react-example

PSPDFKit Web SDK React example running on Tauri
JavaScript
6
star
23

jest-measure

A library to introduce measuring APIs to Jest
JavaScript
6
star
24

react-pdf-demo

An example project demonstrating how to use React-PDF to display PDF files in a React application. Follow along with the accompanying blog post for a step-by-step guide.
JavaScript
5
star
25

pspdfkit-maui7-example

.NET7 MAUI Blazor application using PSPDFKit Web SDK
JavaScript
5
star
26

pspdfkit-jetpack-compose-example

Example app showcasing how to use PSPDFKit for Android within Jetpack Compose
Kotlin
4
star
27

pspdfkit-processor-invoice-from-html

Project showcasing creation of invoices from a HTML with PSPDFKit Processor
JavaScript
4
star
28

pspdfkit-template-generation-from-pdf

Generate PDFs from a Template Using JavaScript
JavaScript
3
star
29

pdfjs-web-example-bootstrap

HTML
2
star
30

pspdfkit-server-invoice

Project showcasing creation of invoices from a template with PSPDFKit Server
JavaScript
2
star
31

github-to-jira

A set of hacks for easier GitHub to Jira migration
Ruby
2
star
32

pdfjs-web-component

A simple web component that uses PDF.js to display a document. Demo included.
TypeScript
2
star
33

libkqueue

C
2
star
34

android-threejs-example

Companion example for the blog post ...
JavaScript
2
star
35

html-to-image-laravel

PHP
1
star
36

cpp-exceptions-testing

Some benchmark and bin size tests for blog post.
C++
1
star
37

SQLiteCpp

C
1
star
38

libpthread_workqueue

C
1
star
39

UsingSharedBufferWithUWP

Sample repository that demonstrates how to share large data from UWP to WebView2
C#
1
star
40

ng2-web-example-angular

How to build an Angular PDF viewer with ng2-pdf-viewer
TypeScript
1
star
41

pspdfkit-receipt-template

Create Receipts using PSPDFKit PDF Generator API
HTML
1
star
42

pdfvuer-web-example-vue

HTML
1
star
43

swig-cpp-blog-example

C++
1
star
44

pspdfkit-pdf-generator-java

PDF Generation with Java and PSPDFKit API
Java
1
star
45

ReactiveCocoa

Objective-C
1
star