summaryrefslogtreecommitdiffhomepage
path: root/ios
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2021-02-25 10:20:26 +0100
committerAndrej Mihajlov <and@mullvad.net>2021-02-25 10:20:26 +0100
commit79d0a31cd0e0f304fefca721bd484a633e51bebf (patch)
tree78e88b99c383919e944a929606894b3b273b190b /ios
parentce89efbc65ca0262a65ecd84f26a96526e7be379 (diff)
downloadmullvadvpn-79d0a31cd0e0f304fefca721bd484a633e51bebf.tar.xz
mullvadvpn-79d0a31cd0e0f304fefca721bd484a633e51bebf.zip
Enable multiline placeholder in text views
Diffstat (limited to 'ios')
-rw-r--r--ios/MullvadVPN/CustomTextView.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/ios/MullvadVPN/CustomTextView.swift b/ios/MullvadVPN/CustomTextView.swift
index 3ce1fa9466..d81ea04108 100644
--- a/ios/MullvadVPN/CustomTextView.swift
+++ b/ios/MullvadVPN/CustomTextView.swift
@@ -63,6 +63,7 @@ class CustomTextView: UITextView {
placeholderTextLabel.textColor = UIColor.TextField.placeholderTextColor
placeholderTextLabel.highlightedTextColor = UIColor.TextField.placeholderTextColor
placeholderTextLabel.translatesAutoresizingMaskIntoConstraints = false
+ placeholderTextLabel.numberOfLines = 0
addSubview(placeholderTextLabel)
// Create placeholder constraints