This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| @objc class AppDelegateTesting : NSObject, UIApplicationDelegate { | |
| internal var window: UIWindow? | |
| func applicationDidFinishLaunching(_ application: UIApplication) { | |
| self.window = UIWindow(frame: UIScreen.main.bounds) | |
| self.window?.rootViewController = UIViewController() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // LoggingPrint.swift | |
| // | |
| import Foundation | |
| /** | |
| Prints the filename, function name, line number and textual representation of `object` and a newline character into | |
| the standard output if the build setting for "Other Swift Flags" defines `-D DEBUG`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// | |
| // Tracks down calls to UIKit from a Thread other than Main | |
| // This installs a small guard that checks for the most common threading-errors in UIKit. | |
| // This won't really slow down performance but still only is compiled in DEBUG versions of PSPDFKit. | |
| // @note No private API is used here. | |
| /// | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| #ifdef DEBUG |