SASAnnotationViewController
@available(*, deprecated, message: "Use PKCanvasView")
public class SASAnnotationViewController : UIViewController, AnnotationViewDelegate, PenToolDelegate, UIPopoverPresentationControllerDelegate, EraserToolDelegate
View controller that provides annotation controls to annotate an image.
Since
since 8.32-
The bar button item in the view controller for sharing an image. This can be used to present a UIActivityViewController in a popover view.
Since
since 8.32Declaration
Swift
@IBOutlet private(set) public var shareButton: UIBarButtonItem? { get }
-
delegate object for the AnnotationViewController. This is optional, and the view controller will work without it.
Since
since 8.32Declaration
Swift
@objc public weak var delegate: SASAnnotationDelegate?
-
Image to annotate. This image will be displayed in the background, and will not be altered.
Since
since 8.32Declaration
Swift
@objc public weak var annotationImage: UIImage? { get set }
-
Factory method for creating a SASAnnotationViewController.
Since
since 8.40.5Declaration
Swift
public static func makeSASAnnotationViewController() -> SASAnnotationViewController
Return Value
a new AnnotationViewController.
-
Copy of original image with annotations
Since
since 8.32Declaration
Swift
public func annotatedImage() -> UIImage
Return Value
Annotated Image.