diff --git a/SKPhotoBrowser/SKIndicatorView.swift b/SKPhotoBrowser/SKIndicatorView.swift index a7988df..fa6ff9d 100644 --- a/SKPhotoBrowser/SKIndicatorView.swift +++ b/SKPhotoBrowser/SKIndicatorView.swift @@ -16,7 +16,7 @@ class SKIndicatorView: UIActivityIndicatorView { override init(frame: CGRect) { super.init(frame: frame) - center = CGPoint(x: frame.width/2, y: frame.height/2) + center = CGPoint(x: frame.width / 2, y: frame.height / 2) activityIndicatorViewStyle = .WhiteLarge } diff --git a/SKPhotoBrowser/SKZoomingScrollView.swift b/SKPhotoBrowser/SKZoomingScrollView.swift index 05b6f98..d0b6dea 100644 --- a/SKPhotoBrowser/SKZoomingScrollView.swift +++ b/SKPhotoBrowser/SKZoomingScrollView.swift @@ -74,9 +74,13 @@ public class SKZoomingScrollView: UIScrollView, UIScrollViewDelegate, SKDetectin } // MARK: - override + public override func layoutSubviews() { tapView.frame = bounds + // + indicatorView.frame = frame + super.layoutSubviews() let boundsSize = bounds.size