Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The link Truncation Token detect wrong position #795

Open
veila opened this issue Apr 26, 2019 · 0 comments
Open

The link Truncation Token detect wrong position #795

veila opened this issue Apr 26, 2019 · 0 comments

Comments

@veila
Copy link

veila commented Apr 26, 2019

Hi,
I have a problem if my text break lines too much like this
" M
M
M
M
M
M ...See more"

So I can not detect right link
This my code
`
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if gestureRecognizer.view is TTTAttributedLabel {
let label = gestureRecognizer.view as! TTTAttributedLabel
let point = touch.location(in: label)
let link = label.link(at: point)
return false
}

    return true
}

`
link wrong or nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant