-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Description
func setupImageresizerView() {
let frame = CGRect(x: 0, y: UIDevice.tm_navigationFullHeight(), width: kScreenWidth, height: kScreenHeight - UIDevice.tm_navigationFullHeight() - 188)
// 1.初始配置
let configure = JPImageresizerConfigure.defaultConfigure(with: image) { c in
_ = c
.jp_viewFrame(frame)
.jp_bgColor(.black)
.jp_isShowMidDots(false)
.jp_frameType(.classicFrameType)
.jp_contentInsets(.init(top: 16, left: 16, bottom: 16, right: 16))
.jp_animationCurve(.easeInOut)
}
if let resizeWHScale = resizeWHScale {
configure.resizeWHScale = resizeWHScale
configure.isArbitrarily = false
}
使用了这个配置,当选择了一张超长的图片后,裁剪缩放、拖动四角均无反应
Metadata
Metadata
Assignees
Labels
No labels