@@ -15,48 +15,6 @@ public protocol InteractiveImageViewDelegate: AnyObject {
1515 func didFail( _ fail: IIVFailType )
1616}
1717
18- public protocol InteractiveImageViewProtocol {
19- /// Setup initial properties of the view.
20- /// - Parameters:
21- /// - nextContentMode: Next content mode, for example heightFill.
22- /// - focusOffset: Initial focus mode of the image view, center or top.
23- /// - image: Image to interact with.
24- /// - identifier: This identifier represents UIView tag.
25- func configure( withNextContentMode nextContentMode: IIVContentMode , withFocusOffset focusOffset: IIVFocusOffset , withImage image: UIImage , withIdentifier identifier: Int )
26-
27- /// Setup initial properties of the view.
28- /// - Parameters:
29- /// - nextContentMode: Next content mode, for example heightFill.
30- /// - focusOffset: Initial focus mode of the image view, center or top.
31- /// - image: Image to interact with.
32- func configure( withNextContentMode nextContentMode: IIVContentMode , withFocusOffset focusOffset: IIVFocusOffset , withImage image: UIImage )
33-
34- /// Set image view focus properties with content offset and zoom scale.
35- /// - Parameters:
36- /// - offset: Offset to focus.
37- /// - animated: Animation state when performing offset changes.
38- /// - zoomScale: Zoom scale to apply on ImageView.
39- func setContentOffset( _ offset: CGPoint , animated: Bool , zoomScale: CGFloat )
40-
41- /// Toggle between initial content mode (aspectFill) and nextContentMode.
42- func toggleImageContentMode( )
43-
44- /// Perform croping image process visible image and listen to delegates to get cropped image.
45- func performCropImage( )
46-
47- /// Crop and get presented image.
48- /// - Returns: UIImage?
49- func cropAndGetImage( ) -> UIImage ?
50-
51- /// Set UIImageView image without changing other IIV view attributes.
52- /// - Parameter image: UIImage?
53- func setImage( _ image: UIImage ? )
54-
55- /// Get initial state of the image without any modifications.
56- /// - Returns: UIImage?
57- func getOriginalImage( ) -> UIImage ?
58- }
59-
6018public class InteractiveImageView : UIView {
6119
6220 // MARK: - Properties
0 commit comments