PTDiffViewController
@interface PTDiffViewController : UIViewController
The PTDiffViewController class provides functionality to produce a document representing the visual difference between two documents. Instances of this class must be embedded inside a UINavigationController.
-
Initializes a new
PTDiffViewController
instance with two documents to compare.Declaration
Parameters
firstDocument
The first
PTPDFDoc
instance to compare.secondDocument
The second
PTPDFDoc
instance to compare.Return Value
an initialized
PTDiffViewController
. -
Initializes a new
PTDiffViewController
instance with two documents to compare and their display color.Declaration
Parameters
firstDocument
The first
PTPDFDoc
instance to compare.secondDocument
The second
PTPDFDoc
instance to compare.firstDocumentColor
The display color for
firstDocument
.secondDocumentColor
The display color for
secondDocument
.Return Value
an initialized
PTDiffViewController
. -
An object conforming to the PTdiffViewControllerDelegate protocol.
Declaration
Objective-C
@property (nonatomic, weak, readwrite, nullable) id<PTDiffViewControllerDelegate> delegate;
Swift
weak var delegate: PTDiffViewControllerDelegate? { get set }
-
The display color to use for the first document.
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) UIColor *firstDocumentColor;
Swift
var firstDocumentColor: UIColor? { get set }
-
The display color to use for the second document.
Declaration
Objective-C
@property (nonatomic, strong, readwrite, nullable) UIColor *secondDocumentColor;
Swift
var secondDocumentColor: UIColor? { get set }
-
The blend mode used for comparing documents.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) PTBlendMode blendMode;
Swift
var blendMode: PTBlendMode { get set }