When using exclusionPaths of textContainer like
textView.textContainer.exclusionPaths = [UIBezierPath(rect: CGRect(x: 0, y: 0, width: 70, height: 30))] then the placeholder label is not excluded.
One possible solution is replacing placeholderLabel to placeholderTextView and apply exclusionPaths to placeholderTextView as same as its superview(UITextView).
When using exclusionPaths of textContainer like
textView.textContainer.exclusionPaths = [UIBezierPath(rect: CGRect(x: 0, y: 0, width: 70, height: 30))]
then the placeholder label is not excluded.One possible solution is replacing
placeholderLabel
toplaceholderTextView
and apply exclusionPaths to placeholderTextView as same as its superview(UITextView).If above solution seems ok, then I will work on.