diff --git a/ImageViewer/AnimatableImageView.swift b/ImageViewer/AnimatableImageView.swift index e8e7bfd..26901ca 100644 --- a/ImageViewer/AnimatableImageView.swift +++ b/ImageViewer/AnimatableImageView.swift @@ -3,7 +3,7 @@ import UIKit final class AnimatableImageView: UIView { fileprivate let imageView = UIImageView() - override var contentMode: UIViewContentMode { + override var contentMode: UIView.ContentMode { didSet { update() } } diff --git a/ImageViewer/ImageViewerController.swift b/ImageViewer/ImageViewerController.swift index e3d90fd..4d00439 100644 --- a/ImageViewer/ImageViewerController.swift +++ b/ImageViewer/ImageViewerController.swift @@ -59,7 +59,7 @@ extension ImageViewerController: UIGestureRecognizerDelegate { private extension ImageViewerController { func setupScrollView() { - scrollView.decelerationRate = UIScrollViewDecelerationRateFast + scrollView.decelerationRate = .fast scrollView.alwaysBounceVertical = true scrollView.alwaysBounceHorizontal = true }