Skip to content

Commit 6f5bf80

Browse files
committed
Remove InteractiveImageViewProtocol from InteractiveImageView file.
1 parent 2648742 commit 6f5bf80

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

Sources/InteractiveImageView/InteractiveImageView.swift

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
6018
public class InteractiveImageView: UIView {
6119

6220
// MARK: - Properties

0 commit comments

Comments
 (0)