File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 694
694
<color key =" backgroundColor" name =" controlColor" catalog =" System" colorSpace =" catalog" />
695
695
</textFieldCell >
696
696
</textField >
697
+ <textField verticalHuggingPriority =" 750" horizontalCompressionResistancePriority =" 250" translatesAutoresizingMaskIntoConstraints =" NO" id =" tiJ-ag-Oyn" >
698
+ <rect key =" frame" x =" 18" y =" 208" width =" 444" height =" 17" />
699
+ <textFieldCell key =" cell" sendsActionOnEndEditing =" YES" title =" Multiline Label" id =" 5Qq-Fr-LC0" >
700
+ <font key =" font" metaFont =" system" />
701
+ <color key =" textColor" name =" labelColor" catalog =" System" colorSpace =" catalog" />
702
+ <color key =" backgroundColor" name =" controlColor" catalog =" System" colorSpace =" catalog" />
703
+ </textFieldCell >
704
+ </textField >
697
705
</subviews >
698
706
<constraints >
699
707
<constraint firstItem =" eOJ-s0-hRz" firstAttribute =" top" secondItem =" m2S-Jp-Qdl" secondAttribute =" top" constant =" 20" id =" 4Hz-3R-lVc" />
700
708
<constraint firstAttribute =" trailing" secondItem =" eOJ-s0-hRz" secondAttribute =" trailing" constant =" 20" id =" 6Db-v4-AP0" />
709
+ <constraint firstAttribute =" trailing" secondItem =" tiJ-ag-Oyn" secondAttribute =" trailing" constant =" 20" id =" ach-rw-vF5" />
710
+ <constraint firstItem =" tiJ-ag-Oyn" firstAttribute =" top" secondItem =" eOJ-s0-hRz" secondAttribute =" bottom" constant =" 8" id =" eqD-DH-kFx" />
701
711
<constraint firstItem =" eOJ-s0-hRz" firstAttribute =" leading" secondItem =" m2S-Jp-Qdl" secondAttribute =" leading" constant =" 20" id =" jpW-Oo-N85" />
712
+ <constraint firstItem =" tiJ-ag-Oyn" firstAttribute =" leading" secondItem =" m2S-Jp-Qdl" secondAttribute =" leading" constant =" 20" id =" kFY-b8-ezZ" />
702
713
</constraints >
703
714
</view >
704
715
<connections >
705
716
<outlet property =" label1" destination =" eOJ-s0-hRz" id =" SRa-YS-NFC" />
717
+ <outlet property =" label2" destination =" tiJ-ag-Oyn" id =" F6d-aH-bFp" />
706
718
</connections >
707
719
</viewController >
708
720
<customObject id =" rPt-NT-nkU" userLabel =" First Responder" customClass =" NSResponder" sceneMemberID =" firstResponder" />
Original file line number Diff line number Diff line change @@ -6,12 +6,16 @@ import RichString
6
6
class ViewController : NSViewController {
7
7
8
8
@IBOutlet weak var label1 : NSTextField !
9
+ @IBOutlet weak var label2 : NSTextField !
9
10
10
11
override func viewWillAppear( ) {
11
12
super. viewWillAppear ( )
12
13
if let text1 = " This is some text "
13
14
. fontSize ( 17 ) ? . color ( . blue) . strikeThrough ( style: . styleDouble) {
14
15
label1. attributedStringValue = text1
15
16
}
17
+
18
+ let text2 = " This is some text " . verticalGlyphForm ( 1 )
19
+ label2. attributedStringValue = text2
16
20
}
17
21
}
You can’t perform that action at this time.
0 commit comments