chore: easy delete image

This commit is contained in:
Lakr
2025-06-19 02:52:03 +08:00
parent cbcc708073
commit a505e65f32
@@ -37,6 +37,13 @@ class DeleteButtonView: UIView {
required init?(coder _: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
if bounds.width < 50 || bounds.height < 50 {
return bounds.insetBy(dx: -20, dy: -20).contains(point)
}
return super.point(inside: point, with: event)
}
override func layoutSubviews() {
super.layoutSubviews()