Skip to content

Commit

Permalink
begining -> beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
ss18 committed Nov 19, 2018
1 parent 648c14e commit 85e4246
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/PixelEditor/Components/ImageScrollView.swift
Expand Up @@ -18,14 +18,14 @@ open class ImageScrollView: UIScrollView {
}

@objc public enum Offset: Int {
case begining
case beginning
case center
}

static let kZoomInFactorFromMinWhenDoubleTap: CGFloat = 2

@objc open var imageContentMode: ScaleMode = .widthFill
@objc open var initialOffset: Offset = .begining
@objc open var initialOffset: Offset = .beginning

@objc public private(set) var zoomView: UIImageView? = nil

Expand Down Expand Up @@ -176,7 +176,7 @@ open class ImageScrollView: UIScrollView {
zoomScale = minimumZoomScale

switch initialOffset {
case .begining:
case .beginning:
contentOffset = CGPoint.zero
case .center:
let xOffset = contentSize.width < bounds.width ? 0 : (contentSize.width - bounds.width)/2
Expand Down

0 comments on commit 85e4246

Please sign in to comment.