Мне нужно установить top , bottom и medium выравнивание текста при просмотре текста, используя расширение UITextView
в Swift.
Для верха: txtView.contentInset = UIEdgeInsets(top: -(view.frame.height/2.60),left: 0.0, bottom: 0, right: 0.0);
Для дна: txtView.contentInset = UIEdgeInsets(top: (view.frame.height/2.60),left: 0.0, bottom: 0, right: 0.0);
Для средних: txtView.contentInset = UIEdgeInsets(top: 0, left: 0.0, bottom: 0, right: 0.0);