Skip to content

Commit

Permalink
feat: make CropViewConfig.padding public (#229)
Browse files Browse the repository at this point in the history
rename minimumBoxSize to minimumCropBoxSize
  • Loading branch information
guoyingtao committed Nov 13, 2022
1 parent da0da69 commit 7f3dedd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Mantis/CropView/CropView.swift
Expand Up @@ -304,7 +304,7 @@ class CropView: UIView {
}

func updateCropBoxFrame(with point: CGPoint) {
let cropViewMinimumBoxSize = cropViewConfig.minimumBoxSize
let cropViewMinimumBoxSize = cropViewConfig.minimumCropBoxSize

let contentFrame = getContentBounds()
let newCropBoxFrame = viewModel.getNewCropBoxFrame(with: point, and: contentFrame, aspectRatioLockEnabled: aspectRatioLockEnabled)
Expand Down
4 changes: 2 additions & 2 deletions Sources/Mantis/CropViewConfig.swift
Expand Up @@ -29,9 +29,9 @@ public struct CropViewConfig {

public var showRotationDial = true

var minimumBoxSize: CGFloat = 42
public var padding: CGFloat = 14

var padding: CGFloat = 14
var minimumCropBoxSize: CGFloat = 42

public init() {}
}

0 comments on commit 7f3dedd

Please sign in to comment.