@@ -557,38 +557,47 @@ public extension Font {
557
557
}
558
558
559
559
public extension Font . Weight {
560
+ /// The ultra-light font weight.
560
561
static var ultraLight : Font . Weight {
561
562
Font . Weight ( rawValue: FW_ULTRALIGHT)
562
563
}
563
564
565
+ /// The thin font weight.
564
566
static var thin : Font . Weight {
565
567
Font . Weight ( rawValue: FW_THIN)
566
568
}
567
569
570
+ /// The light font weight.
568
571
static var light : Font . Weight {
569
572
Font . Weight ( rawValue: FW_LIGHT)
570
573
}
571
574
575
+ /// The regular font weight.
572
576
static var regular : Font . Weight {
573
577
Font . Weight ( rawValue: FW_REGULAR)
574
578
}
575
579
580
+ /// The medium font weight.
576
581
static var medium : Font . Weight {
577
582
Font . Weight ( rawValue: FW_MEDIUM)
578
583
}
579
584
585
+ /// The semibold font weight.
580
586
static var semibold : Font . Weight {
581
587
Font . Weight ( rawValue: FW_SEMIBOLD)
582
588
}
583
589
590
+ /// The bold font weight.
584
591
static var bold : Font . Weight {
585
592
Font . Weight ( rawValue: FW_BOLD)
586
593
}
587
594
595
+ /// The heavy font weight.
588
596
static var heavy : Font . Weight {
589
597
Font . Weight ( rawValue: FW_HEAVY)
590
598
}
591
599
600
+ /// The black font weight.
592
601
static var black : Font . Weight {
593
602
Font . Weight ( rawValue: FW_BLACK)
594
603
}
@@ -606,46 +615,57 @@ public extension Font {
606
615
}
607
616
608
617
public extension Font . TextStyle {
618
+ /// The font for body text.
609
619
static var body : Font . TextStyle {
610
620
Font . TextStyle ( rawValue: " UICTFontTextStyleBody " )
611
621
}
612
622
623
+ /// The font for callouts.
613
624
static var callout : Font . TextStyle {
614
625
Font . TextStyle ( rawValue: " UICTFontTextStyleCallout " )
615
626
}
616
627
628
+ /// The font for standard captions.
617
629
static var caption1 : Font . TextStyle {
618
630
Font . TextStyle ( rawValue: " UICTFontTextStyleCaption1 " )
619
631
}
620
632
633
+ /// The font for alternate captions.
621
634
static var caption2 : Font . TextStyle {
622
635
Font . TextStyle ( rawValue: " UICTFontTextStyleCaption2 " )
623
636
}
624
637
638
+ /// The font for footnotes.
625
639
static var footnote : Font . TextStyle {
626
640
Font . TextStyle ( rawValue: " UICTFontTextStyleFootnote " )
627
641
}
628
642
643
+ /// The font for headings.
629
644
static var headline : Font . TextStyle {
630
645
Font . TextStyle ( rawValue: " UICTFontTextStyleHeadline " )
631
646
}
632
647
648
+ /// The font for subheadings.
633
649
static var subheadline : Font . TextStyle {
634
650
Font . TextStyle ( rawValue: " UICTFontTextStyleSubhead " )
635
651
}
636
652
653
+ /// The font style for large titles.
637
654
static var largeTitle : Font . TextStyle {
638
655
Font . TextStyle ( rawValue: " UICTFontTextStyleTitle0 " )
639
656
}
640
657
658
+ /// The font for first-level hierarchical headings.
641
659
static var title1 : Font . TextStyle {
642
660
Font . TextStyle ( rawValue: " UICTFontTextStyleTitle1 " )
643
661
}
644
662
663
+ /// The font for second-level hierarchical headings.
645
664
static var title2 : Font . TextStyle {
646
665
Font . TextStyle ( rawValue: " UICTFontTextStyleTitle2 " )
647
666
}
648
667
668
+ /// The font for third-level hierarchical headings.
649
669
static var title3 : Font . TextStyle {
650
670
Font . TextStyle ( rawValue: " UICTFontTextStyleTitle3 " )
651
671
}
0 commit comments