SASAnnotationViewController

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

    Declaration

    Swift

    @IBOutlet
    private(set) public var shareButton: UIBarButtonItem?
  • delegate object for the AnnotationViewController. This is optional, and the view controller will work without it.

    Since

    since 8.32

    Declaration

    Swift

    public weak var delegate: SASAnnotationDelegate?
  • Image to annotate. This image will be displayed in the background, and will not be altered.

    Since

    since 8.32

    Declaration

    Swift

    public weak var annotationImage: UIImage? { get set }
  • copy of original image with annotations

    Since

    since 8.32

    Declaration

    Swift

    public func annotatedImage() -> UIImage

    Return Value

    Annotated Image.