From ffec0b937d11e0e2fbf0001e34ca13708ad12c73 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Kawashima Date: Mon, 15 Oct 2018 10:22:58 +0900 Subject: [PATCH] Use public Members of 'final' classes are implicitly 'final'; use 'public' instead of 'open' fixes #33 --- AKImageCropperView/AKImageCropperScrollView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AKImageCropperView/AKImageCropperScrollView.swift b/AKImageCropperView/AKImageCropperScrollView.swift index 11a9ed0..0e25082 100644 --- a/AKImageCropperView/AKImageCropperScrollView.swift +++ b/AKImageCropperView/AKImageCropperScrollView.swift @@ -15,7 +15,7 @@ final class AKImageCropperScrollView: UIScrollView { /** Return visible rect of an UIScrollView's content */ - open var visibleRect: CGRect { + public var visibleRect: CGRect { return CGRect( x : contentInset.left, y : contentInset.top, @@ -25,7 +25,7 @@ final class AKImageCropperScrollView: UIScrollView { /** Returns scaled visible rect of an UIScrollView's content */ - open var scaledVisibleRect: CGRect { + public var scaledVisibleRect: CGRect { return CGRect( x : (contentOffset.x + contentInset.left) / zoomScale, y : (contentOffset.y + contentInset.top) / zoomScale, @@ -41,7 +41,7 @@ final class AKImageCropperScrollView: UIScrollView { return view }() - open var image: UIImage! { + public var image: UIImage! { didSet { /* Prepare scroll view to changing the image */