Skip to content

Commit eb39c31

Browse files
committed
Rename SPLabel
1 parent 2c8622d commit eb39c31

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

Example/SpringText/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
2121
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
2222
<subviews>
23-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sIj-hc-Uk3" customClass="TPCountLabel" customModule="SpringText">
23+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sIj-hc-Uk3" customClass="SPLabel" customModule="SpringText">
2424
<rect key="frame" x="36" y="20" width="303" height="21"/>
2525
<color key="backgroundColor" systemColor="systemPinkColor"/>
2626
<fontDescription key="fontDescription" type="system" pointSize="17"/>

Example/SpringText/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import UIKit
1010
import SpringText
1111

1212
class ViewController: UIViewController {
13-
@IBOutlet weak var lblTitle: TPCountLabel!
13+
@IBOutlet weak var lblTitle: SPLabel!
1414

1515
override func viewDidLoad() {
1616
lblTitle.text(num: 28787123)

SpringText/Classes/SPLabel.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import UIKit
99

10-
open class TPCountLabel: UILabel {
10+
open class SPLabel: UILabel {
1111
var fullText = ""
1212
private var hasWon: Bool = true
1313

@@ -168,11 +168,3 @@ open class TPCountLabel: UILabel {
168168
}
169169
}
170170
}
171-
172-
173-
open class SPLabel: UILabel {
174-
public func updateDisplay() {
175-
self.text = "Update"
176-
self.sizeToFit()
177-
}
178-
}

0 commit comments

Comments
 (0)