-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Hi
I am making app where user can able to fill colour. App is auto layout and image is on full screen and user can fill colour by tapping on image.
But when i use touchbegan method for getting user points and then passing these points in your method, result was fill colour on different place please check image

my touch began method is
override func touchesBegan(_ touches: Set, with event: UIEvent?) {
let touch = touches.first!
let location = touch.location(in: self.imgViewMain)
print(location.x)
print(location.y)
self.imgViewMain.image = self.imgViewMain.image?.pbk_imageByReplacingColorAt(Int(location.x), Int(location.y), withColor: .yellow, tolerance: 100, antialias: true)
}
Can you please sort out where i am doing this wrong
Metadata
Metadata
Assignees
Labels
No labels