|
@@ -84,9 +84,9 @@ public class NCViewerImageViewController: UIViewController {
|
|
|
weak var dataSource: NCViewerImageViewControllerDataSource?
|
|
|
public weak var delegate: NCViewerImageViewControllerDelegate?
|
|
|
|
|
|
-
|
|
|
+
|
|
|
public var gestureDirection: GestureDirection = .horizontal
|
|
|
-
|
|
|
+
|
|
|
public var contentTransformer: NCViewerImageContentTransformer = NCViewerImageDefaultContentTransformers.horizontalMoveInOut {
|
|
|
didSet {
|
|
|
|
|
@@ -94,7 +94,6 @@ public class NCViewerImageViewController: UIViewController {
|
|
|
contentViews.forEach({ $0.updateTransform() })
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
public var drawOrder: ContentDrawOrder = .previousToNext {
|
|
|
didSet {
|
|
|
if oldValue != drawOrder {
|
|
@@ -102,9 +101,9 @@ public class NCViewerImageViewController: UIViewController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
public var browserStyle: BrowserStyle = .carousel
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
public var gapBetweenMediaViews: CGFloat = Constants.gapBetweenContents {
|
|
|
didSet {
|
|
|
NCViewerImageContentView.interItemSpacing = gapBetweenMediaViews
|
|
@@ -112,9 +111,9 @@ public class NCViewerImageViewController: UIViewController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
public var enableInteractiveDismissal: Bool = true
|
|
|
-
|
|
|
+
|
|
|
public var currentItemIndex: Int {
|
|
|
|
|
|
return sanitizeIndex(index)
|
|
@@ -196,7 +195,6 @@ public class NCViewerImageViewController: UIViewController {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
public func reloadContentViews() {
|
|
|
|
|
|
numMediaItems = dataSource?.numberOfItems(in: self) ?? 0
|