Skip to content

Commit

Permalink
Update Place Holder Visibility:
Browse files Browse the repository at this point in the history
Code review
  • Loading branch information
jayelzaghmoutt committed May 27, 2024
1 parent 71b42c9 commit f143249
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions JNMentionTextView.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "JNMentionTextView"
s.version = "1.0.2"
s.version = "1.0.3"
s.summary = "JNMentionTextView is a UITextView replacement supporting the mention feature for iOS applications."
s.description = "A UITextView drop-in replacement supporting special characters such as [ #, @ ] and regex patterns, written in Swift."
s.homepage = "https://github.com/JNDisrupter"
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |s|

s.platform = :ios
s.platform = :ios, "11.0"
s.swift_versions = ['5.8', '5.8.1']
s.swift_versions = ['5.10']
s.source = { :git => "https://github.com/JNDisrupter/JNMentionTextView.git", :tag => "#{s.version}" }
s.source_files = "JNMentionTextView/**/*.{swift}"
end
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ extension JNMentionTextView: UITextViewDelegate {
self.mentionDelegate?.textViewDidChange?(textView)

// Update placeholder label visibility
self.updatePlaceholderLabelVisibility()
self.updatePlaceholderVisibility()
}

/**
Expand All @@ -195,7 +195,7 @@ extension JNMentionTextView: UITextViewDelegate {
self.mentionDelegate?.textViewDidBeginEditing?(textView)

// Update placeholder label visibility
self.updatePlaceholderLabelVisibility()
self.updatePlaceholderVisibility()
}

/**
Expand All @@ -209,7 +209,7 @@ extension JNMentionTextView: UITextViewDelegate {
}

// Update placeholder label visibility
self.updatePlaceholderLabelVisibility()
self.updatePlaceholderVisibility()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ public class JNMentionTextView: UITextView {
/// Text
override open var text: String! {
didSet {
self.updatePlaceholderLabelVisibility()
self.updatePlaceholderVisibility()
}
}

/// Attributed text
override open var attributedText: NSAttributedString! {
didSet {
self.updatePlaceholderLabelVisibility()
self.updatePlaceholderVisibility()
}
}

Expand Down Expand Up @@ -195,7 +195,7 @@ public class JNMentionTextView: UITextView {
/**
Update placeholder visibility
*/
public func updatePlaceholderLabelVisibility() {
func updatePlaceholderVisibility() {
guard self.placeholderLabel != nil else { return }

// Is placeholder hidden
Expand Down Expand Up @@ -244,7 +244,7 @@ public class JNMentionTextView: UITextView {
self.addSubview(self.placeholderLabel!)

// Update placeholder label visibility
self.updatePlaceholderLabelVisibility()
self.updatePlaceholderVisibility()
}

/**
Expand Down

0 comments on commit f143249

Please sign in to comment.