Skip to content

Commit

Permalink
Make the placeholder type an Optional String
Browse files Browse the repository at this point in the history
  • Loading branch information
cefjoeii committed May 29, 2020
1 parent b5df52f commit ebaf0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerUpSwift/Classes/PowerUpTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open class PowerUpTextView: UITextView {
var placeholderLabel = PowerUpLabel()

/// The custom-built placeholder for UITextViews through the PowerUpTextView subclass.
@IBInspectable open var placeholder: String = "" {
@IBInspectable open var placeholder: String? = nil {
didSet {
self.placeholderLabel.text = placeholder
}
Expand Down

0 comments on commit ebaf0a7

Please sign in to comment.