Skip to content

Commit

Permalink
Made the placeholder label in the RVS_PlaceholderTextView class mul…
Browse files Browse the repository at this point in the history
…tiline.
  • Loading branch information
ChrisMarshallNY committed Apr 11, 2024
1 parent 34dab69 commit 04e714f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*Version 1.5.4* **April 11, 2024**
- Made the placeholder label in the `RVS_PlaceholderTextView` class multiline.

*Version 1.5.3* **January 6, 2024**
- Added a standard Apple privacy manifest (in addition to the markdown file).
- Added the ability to switch the font for the placeholder text label.
Expand Down
6 changes: 3 additions & 3 deletions RVS_UIKit_Toolbox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1340;
LastUpgradeCheck = 1510;
LastUpgradeCheck = 1530;
TargetAttributes = {
D43965BB286C992100727E6A = {
CreatedOnToolsVersion = 13.4.1;
Expand Down Expand Up @@ -498,7 +498,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.5.3;
MARKETING_VERSION = 1.5.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.riftvalleysoftware.RVS-UIKit-Toolbox-TestHarness";
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
Expand Down Expand Up @@ -530,7 +530,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.5.3;
MARKETING_VERSION = 1.5.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.riftvalleysoftware.RVS-UIKit-Toolbox-TestHarness";
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTS_MACCATALYST = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1510"
LastUpgradeVersion = "1530"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
5 changes: 3 additions & 2 deletions Sources/RVS_UIKit_Toolbox/RVS_UIKit_Toolbox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT
The Great Rift Valley Software Company: https://riftvalleysoftware.com
Version: 1.5.3
Version: 1.5.4
*/

import UIKit
Expand Down Expand Up @@ -796,8 +796,9 @@ public extension RVS_PlaceholderTextView {
_placeholderLabel.leftAnchor.constraint(equalTo: leftAnchor, constant: Self._leftInsetInDisplayUnits).isActive = true
_placeholderLabel.font = useSystemFont ? .systemFont(ofSize: pointSize) : font
_placeholderLabel.textColor = .tertiaryLabel
_placeholderLabel.sizeToFit()
_placeholderLabel.numberOfLines = 0
_placeholderLabel.text = placeholder
_placeholderLabel.sizeToFit()
_placeholderLabel.isHidden = !(text ?? "").isEmpty
// We detect changes, by observing for them.
NotificationCenter.default.addObserver(self, selector: #selector(_textViewChanged(_:)), name: UITextView.textDidChangeNotification, object: self)
Expand Down

0 comments on commit 04e714f

Please sign in to comment.