Skip to content

Instantly share code, notes, and snippets.

@daoseng33
Created March 11, 2019 03:00
Show Gist options
  • Save daoseng33/d7708422fd2a3c9126d586892e4ded58 to your computer and use it in GitHub Desktop.
Save daoseng33/d7708422fd2a3c9126d586892e4ded58 to your computer and use it in GitHub Desktop.
extension UITextView {
func removeTextPadding() {
textContainer.lineFragmentPadding = 0
textContainerInset = .zero
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment