I have a UITextView which I can move around with a panGesture recogniser: This is the code I use to set it up:
let customTextView: UITextView = { let