Skip to content

Commit

Permalink
Make maxScaleFromMinScal open for overrides
Browse files Browse the repository at this point in the history
It should be possible to override the default 3.0 value to allow zooming further in on images
  • Loading branch information
ealmdahl authored Nov 11, 2020
1 parent 3a807b6 commit d8cde37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ImageScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ open class ImageScrollView: UIScrollView {
var imageSize: CGSize = CGSize.zero
private var pointToCenterAfterResize: CGPoint = CGPoint.zero
private var scaleToRestoreAfterResize: CGFloat = 1.0
var maxScaleFromMinScale: CGFloat = 3.0
open var maxScaleFromMinScale: CGFloat = 3.0

override open var frame: CGRect {
willSet {
Expand Down

0 comments on commit d8cde37

Please sign in to comment.