UITextView
![[iOS] UITextView에 링크 거는 법](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FviHtO%2Fbtq0MU6BwYY%2FTb3L2ag0ZGVGE1l7TdAKy1%2Fimg.png)
[iOS] UITextView에 링크 거는 법
진행 중이던 프로젝트에서 TextView에 링크를 거는 작업을 해 보았다. 먼저 링크를 걸고 싶은 TextView에 다음과 같은 몇 가지 설정을 해주어야 한다._ = contentTextView.then { $0.isUserInteractionEnabled = true $0.isSelectable = true //Default $0.isEditable = false $0.dataDetectorTypes = .link $0.delegate = self }어떤 설정인지 차근차근 살펴보자. isUserInteractionEnabled먼저 isUserInteractionEnabled는 유저의 이벤트가 event queue로부터 무시되고 삭제됐는지 판단하는 Boolean 값이다.false로 설정하면 touch나 ..