File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 20
20
<rect key =" frame" x =" 0.0" y =" 0.0" width =" 375" height =" 667" />
21
21
<autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
22
22
<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" >
24
24
<rect key =" frame" x =" 36" y =" 20" width =" 303" height =" 21" />
25
25
<color key =" backgroundColor" systemColor =" systemPinkColor" />
26
26
<fontDescription key =" fontDescription" type =" system" pointSize =" 17" />
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import UIKit
10
10
import SpringText
11
11
12
12
class ViewController : UIViewController {
13
- @IBOutlet weak var lblTitle : TPCountLabel !
13
+ @IBOutlet weak var lblTitle : SPLabel !
14
14
15
15
override func viewDidLoad( ) {
16
16
lblTitle. text ( num: 28787123 )
Original file line number Diff line number Diff line change 7
7
8
8
import UIKit
9
9
10
- open class TPCountLabel : UILabel {
10
+ open class SPLabel : UILabel {
11
11
var fullText = " "
12
12
private var hasWon : Bool = true
13
13
@@ -168,11 +168,3 @@ open class TPCountLabel: UILabel {
168
168
}
169
169
}
170
170
}
171
-
172
-
173
- open class SPLabel : UILabel {
174
- public func updateDisplay( ) {
175
- self . text = " Update "
176
- self . sizeToFit ( )
177
- }
178
- }
You can’t perform that action at this time.
0 commit comments