Checks UIView methods are being called on the correct thread. Swift re-work of PSPDFUIKitMainThreadGuard.m.
- Drag into project
- Select your project in the navigator, then the build settings tab
- Filter with 'preprocessor macro', then expand the row with the arrow on the left
- Double click in the debug row value, type
DEBUG=1
- Filter with 'other swift flags', expland, in the debug row type
-DDEBUG
- Add the following to the top of your App Delegate:
override init() {
super.init()
UIView.classInit
}
MIT