Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ikorich committed Jan 17, 2019
1 parent 97776f2 commit 8d8b435
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation

extension IGRCropView {

internal func seetupLines() {
internal func setupLines() {
self.dismiss(self.horizontalCropLines)
self.dismiss(self.verticalCropLines)
self.dismiss(self.horizontalGridLines)
Expand Down
2 changes: 1 addition & 1 deletion IGRPhotoTweaks/PhotoTweakView/CropView/IGRCropView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class IGRCropView: UIView {

fileprivate func setup() {

self.seetupLines()
self.setupLines()

let upperLeft = IGRCropCornerView(cornerType: .upperLeft,
lineWidth: cornerBorderWidth,
Expand Down
8 changes: 7 additions & 1 deletion IGRPhotoTweaks/PhotoTweakView/IGRPhotoTweakView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,13 @@ public class IGRPhotoTweakView: UIView {
public override func layoutSubviews() {
super.layoutSubviews()

self.originalSize = self.maxBounds().size
if !manualMove {
self.originalSize = self.maxBounds().size
self.scrollView.center = CGPoint(x: (self.frame.width * 0.5), y: self.centerY)

self.cropView.center = self.scrollView.center
self.scrollView.checkContentOffset()
}
}

//MARK: - Public FUNCs
Expand Down

0 comments on commit 8d8b435

Please sign in to comment.