VGSImageViewDelegate
@objc
@MainActor
public protocol VGSImageViewDelegate
Delegate methods produced by VGSImageView.
-
Tells the delegate the image was displayed in view.
Declaration
Swift
@objc @MainActor optional func imageDidChange(in imageView: VGSImageView)Parameters
imageViewVGSImageViewview in which image was changed. -
Tells the delegate when image view encounters an error.
Declaration
Swift
@objc @MainActor optional func imageView(_ imageView: VGSImageView, didFailWithError error: VGSShowError)Parameters
imageViewVGSImageViewview in which error was occurred.errorVGSShowErrorobject, contains error information.
View on GitHub