Skip to content

Commit

Permalink
Merge pull request #43 from PB-Digital/develop
Browse files Browse the repository at this point in the history
RELEASE: v1.3.5
  • Loading branch information
IsRza authored Oct 16, 2023
2 parents e89d27b + 5855221 commit 70b86e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.3.4",
"release_notes": "Corner radius recalculation issue of `PBRowView`."
"version": "1.3.5",
"release_notes": "A swift style getter and setter added for text of `PBUITextView`, old getter deprecated. makeFirstResponder functionality was added."
}
14 changes: 13 additions & 1 deletion Sources/PashaKit/PBUITextView/PBUITextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,23 @@ public class PBUITextView: UIView {

/// Returns the current text from text field. If there's no text, this method
/// will return empty string literal.
///
@available(*, deprecated, renamed: "text")
public func getText() -> String {
return self.textView.text ?? ""
}

public var text: String {
get {
self.textView.text ?? ""
} set {
self.textView.text = newValue
}
}

public func makeFirstResponder() {
self.textView.becomeFirstResponder()
}

// MARK: - INPUT DELEGATES

/// Gets called when textview gets resigned from being first responder.
Expand Down

0 comments on commit 70b86e9

Please sign in to comment.